Class: WebSocketConnector

WebSocketConnector(url, properties)

new WebSocketConnector(url, properties)

Parameters:
Name Type Description
url -
properties Object -
Source:

Methods

(async) disconnect()

Disconnects and close the websocket.
Source:

doAsyncRequest()

Connect to the webSocket. If the system supports WebWorker, it will automatically creates one otherwise use the main thread.
Source:

doRequest()

Connect to the webSocket. If the system supports WebWorker, it will automatically creates one otherwise use the main thread.
Source:

Events

onMessage

The onMessage method used by the websocket to callback the data
Parameters:
Name Type Description
data the callback data
Source: