|
|
|
|
WebSocketSend (Function) In french: WebSocketEnvoie Sends a message from the WebSocket server to the client.
// Retrieve list of clients arrClients is array of websocketClient = WebSocketListConnectedClient() // To send a message to each client FOR EACH oClient OF arrClients WebSocketSend(oClient, bufMessage) END
Syntax
WebSocketSend(<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: it simply requests the sending of the message to the client. The message can actually be sent later (after WebSocketSend has been executed). WebSocketSend never returns an error (for example, if the client has been disconnected in the meantime).
- The WebSocket protocol supports two message formats: binary or string (UTF-8 encoded). WebSocketSend automatically chooses the format according to the type of parameter received.
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|