|
|
|
|
|
WebSocketSend (Function) In french: WebSocketEnvoie Sends a message from the WebSocket server to the client.
tabClients is array of websocketClient = WebSocketListConnectedClient()
FOR EACH oClient OF tabClients
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 the function simply requests that the message be sent 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 allows two message formats: binary or string (encoded in UTF-8). WebSocketSend automatically chooses the format according to the type of parameter received.
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|