Websocket
From Lianjapedia
Revision as of 10:53, 5 May 2020 by Yvonne.milne (Talk | contribs)
Under Construction
The Websocket class allows the application to handle asynchronous notifications from a remote server.
See also: Working with web sockets in Lianja 5.3
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Properties
This class supports the following properties:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
onreceivedmessage | RW | Function | Function to call when message received (server) |
receivedmessage | RW | Function | Function to call when message received (client) |
Methods
This class supports the following methods:
Method | Args | Description |
---|---|---|
connect | url as Character | Connects to the server |
disconnect | None | Disconnects from the server |
listen | port as Numeric | Listens on the specified port (server) |
sendmessage | message as Character | Sends the specified message to the server (from client) |
sendmessage | websocketid as , message as Character | Sends the specified message to the specified web socket id (from server) |