WebSocket are useful when constantly comminicating with a server and when a fast reaction time is required.
A web socket will automatically open after creating it. Once after finished loading, the OnOpen callback is called.
In order to receive messages from the server you have to specify a OnMessage callback.
See Also: CreateWebServer
Methods
The following methods are available on the WebSocket object:
Batch(
properties )
Close()
GetSocket() → JavaScript object: WebSocket
IsOpen() → Boolean