new WebSocketConnector(url, properties)
Parameters:
| Name | Type | Description | 
|---|---|---|
| url | - | |
| properties | Object | - | 
Methods
(async) disconnect()
    Disconnects and close the websocket.
        
            
    
    
    doAsyncRequest()
    Connect to the webSocket. If the system supports WebWorker, it will automatically creates one otherwise use
the main thread.
        
            
    
    
    doRequest()
    Connect to the webSocket. If the system supports WebWorker, it will automatically creates one otherwise use
the main thread.
        
    
    
    
        Events
onMessage
    The onMessage method used by the websocket to callback the data
    Parameters:
| Name | Type | Description | 
|---|---|---|
| data | the callback data |