Back

CreateWebSocket

?

app.CreateWebSocket( id, ip, port, options ) -> app object - WebSocket

The following methods are avaiable on the WebSocket object:

  Close()
  GetSocket() -> unknown
  IsOpen() -> boolean
  Send( message )

unknown
close web socket
return wether WS was opened
string
send text over the WS
function()
called when WS closed
function( message )
called when recived text
function()
called when WS loaded/opened