uce/site/doc/pages/ws_connection_count.txt

19 lines
602 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
:desc
Returns the number of currently connected WebSocket clients for the given scope.
If `scope` is omitted, the current page scope is used.
:see
>websocket
: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