Constructor
new WebSocketDataConnector()
Extends
Methods
close()
Closes the webSocket.
connect()
Connect to the webSocket. If the system supports WebWorker, it will automatically creates one otherwise use
the main thread.
disconnect()
Disconnects the websocket.
getId() → {string}
The data connector default id.
- Inherited From:
- Source:
Returns:
- Type
- string
getUrl() → {string}
The stream url.
- Inherited From:
- Source:
Returns:
- Type
- string
onMessage(data)
The onMessage method used by the websocket to callback the data
Parameters:
| Name | Type | Description |
|---|---|---|
data |
the callback data |