uce/site/doc/pages/ws_scope.txt

20 lines
729 B
Plaintext

:sig
String ws_scope()
:params
return value : scope identifier of the current WebSocket endpoint
:desc
Returns the runtime's scope identifier for the current WebSocket endpoint.
This is the same default scope used by `ws_send()`, `ws_connections()`, and `ws_connection_count()` when no explicit scope is supplied.
In the current runtime implementation this scope is the page's internal endpoint identifier, typically the absolute `SCRIPT_FILENAME` of the `.ws.uce` file.
: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