isWebsocketReady

[ Function ]

public static isWebsocketReady(): boolean;

Returns the communication state of the web socket.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

boolean

State value of the web socket.

isWebsocketReady 1:

Available from 1.8

Sample - JavaScript

var ready = TcHmi.Server.isWebsocketReady();
if(ready === true){
    // Websocket is ready.
} else{
    // Websocket is not ready.
}