Difference between revisions of "Websocket"

From Lianjapedia
Jump to: navigation, search
(Created page with "''Under Construction'' The Websocket class allows the application to handle asynchronous notifications from a remote server. See also: [https://www.lianja.com/community/show...")
 
(Properties)
Line 16: Line 16:
 
!Value
 
!Value
 
!width="50%"|Description
 
!width="50%"|Description
|-
 
|valign="top"|onreceivedmessage
 
|valign="top"|RW
 
|valign="top"|Function
 
|valign="top"|Function to call when message received (server)
 
 
|-
 
|-
 
|valign="top"|receivedmessage
 
|valign="top"|receivedmessage
 
|valign="top"|RW
 
|valign="top"|RW
 
|valign="top"|Function
 
|valign="top"|Function
|valign="top"|Function to call when message received (client)
+
|valign="top"|Function to call when message received
 
|-
 
|-
 
|}
 
|}

Revision as of 03:52, 6 May 2020

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
receivedmessage RW Function Function to call when message received

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)