18 lines
480 B
Plaintext
18 lines
480 B
Plaintext
:sig
|
|
u64 ws_broadcast(String message, String scope = "")
|
|
|
|
:params
|
|
message : text message to send
|
|
scope : optional scope identifier, defaults to the current WebSocket page scope
|
|
return value : number of clients the message was queued for
|
|
|
|
:desc
|
|
Queues a text WebSocket message for every client connected to the given scope and returns the number of recipients.
|
|
|
|
If `scope` is omitted, the current page scope is used.
|
|
|
|
This helper currently sends text frames only.
|
|
|
|
:see
|
|
>websocket
|