Class: WebSocketClient

SRPClientPrototype~ WebSocketClient

new WebSocketClient()

WebSocket Client (singleton)
Source:

Members

websocket :WebSocket

Type:
  • WebSocket
Source:

Methods

init()

initialize websocket and connect to server
Source:

onMessage(event)

onMessage handler
Parameters:
Name Type Description
event DOMEvent (WebSocket Event)
Source:

send(jsonData)

send (JSON message as string)
Parameters:
Name Type Description
jsonData object (JSON)
Source: