18 lines
496 B
Plaintext
18 lines
496 B
Plaintext
:sig
|
|
u64 ws_connection_count(String scope = "")
|
|
|
|
:params
|
|
scope : optional scope identifier, defaults to the current WebSocket page scope
|
|
return value : number of connected WebSocket clients in that scope
|
|
|
|
:see
|
|
>websocket
|
|
|
|
:content
|
|
Returns the number of currently connected WebSocket clients for the given scope.
|
|
|
|
If `scope` is omitted, the current page scope is used.
|
|
|
|
:example
|
|
print("ws_connection_count is resource-bound; configure the service or connection, then call it in request code.\n");
|