|
|
|
|
|
<websocketClient variable>.Send (Function) In french: <Variable websocketClient>.Envoie Sends a message from the WebSocket server to the client.
arrClients is array of websocketClient = WebSocketListConnectedClient()
FOR ALL tabClient oClients
oClient.Send(bufMessage)
END
Syntax
Sends(<Client> , <Message>)
<Client>: websocketClient variable Name of the websocketClient variable that corresponds to the client to which the message will be sent. <Message>: Character string Message to send. Remarks - This function is asynchronous the function simply requests that the message be sent to the client. The message can actually be sent later (after <websocketClient variable>.Send has been executed). <websocketClient variable>.Send never returns an error (for example, if the client has been disconnected in the meantime).
- The WebSocket protocol allows two message formats: binary or string (encoded in UTF-8). <websocketClient variable>.Send automatically chooses the format according to the type of parameter received.
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|