20 lines
643 B
Plaintext
20 lines
643 B
Plaintext
:sig
|
|
bool ws_send_to(String connection_id, String message, bool binary = false)
|
|
|
|
:params
|
|
connection_id : ID of the target WebSocket client
|
|
message : message payload to send
|
|
binary : set to true to send a binary frame instead of a text frame
|
|
return value : true if the target connection exists and the message was queued
|
|
|
|
:see
|
|
>websocket
|
|
|
|
:content
|
|
Queues a WebSocket message for one specific connected client.
|
|
|
|
Related:
|
|
|
|
- PHP: WebSocket connection metadata and send APIs in Ratchet, Workerman, or similar server frameworks
|
|
- JavaScript / Node.js: browser `WebSocket` properties and Node `ws` server-side connection inspection and send methods
|