uce/site/doc/pages/ws_send_to.txt
2026-06-16 12:21:31 +00:00

18 lines
528 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.
:example
print("ws_send_to is resource-bound; configure the service or connection, then call it in request code.\n");