cleanup, docs
This commit is contained in:
@@ -16,4 +16,6 @@ Queues a WebSocket message for every client connected to the given scope.
|
||||
If `scope` is omitted, the current page scope is used.
|
||||
|
||||
:example
|
||||
print("ws_send is resource-bound; configure the service or connection, then call it in request code.\n");
|
||||
// Inside a WS handler this broadcasts to the current scope.
|
||||
bool sent = ws_send("hello subscribers");
|
||||
print(sent ? "broadcast queued" : "no active WS scope to broadcast to", "\n");
|
||||
|
||||
Reference in New Issue
Block a user