isWebsocketReady
[ Function ]
public static isWebsocketReady(): boolean;
Returns the communication state of the web socket.
Parameter
Name | Type | Description |
---|---|---|
- | - | - |
Return value
Type | Description |
---|---|
State value of the web socket. |
Available from 1.8 |
Sample - JavaScript
var ready = TcHmi.Server.isWebsocketReady();
if(ready === true){
// Websocket is ready.
} else{
// Websocket is not ready.
}