public class WebConnector extends java.lang.Object implements DataPointListener
| Modifier and Type | Field and Description | 
|---|---|
| org.java_websocket.server.WebSocketServer | wss | 
listeners| Modifier and Type | Method and Description | 
|---|---|
| static WebConnector | getMySelf()Get the singleton instance
 create it if it does not exist | 
| void | initialize(java.lang.String host,
          int port)Initialize webConnector by initializing the websocket server
  - define all the callbacks for the websocket server (onOpen, onClose, onMessage, onError, onStart)
  - start the websocket server
  - wait for the first connection | 
| void | onNewValue(DataPoint dp)Callback for the update of a dataPoint | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsubscribeUpdatepublic static WebConnector getMySelf()
public void initialize(java.lang.String host,
                       int port)
host - url of the host (localhost)port - port for the websocket server (8888)public void onNewValue(DataPoint dp)
onNewValue in interface DataPointListenerdp - dataPoint updated