Module: websocket_js

Methods

(inner) getWebsocketState() → {boolean}

Checks if the websocket is connected
Source:
Returns:
true if websocket is connected, else false
Type
boolean

(inner) webSocketClose() → {void}

Closes the websocket and terminates the keepalive timer
Source:
Returns:
Type
void

(inner) webSocketConnect() → {void}

Connects to the websocket, registers the event handlers and enables the keepalive timer
Source:
Returns:
Type
void

(inner) websocketKeepAlive() → {void}

Sends a ping keepalive message to the websocket endpoint or reconnects the socket if the socket is disconnected or stale. Refreshes the home widgets if the socket is connected.
Source:
Returns:
Type
void