uce/site/doc/pages/ws_is_binary.txt

18 lines
540 B
Plaintext

:sig
bool ws_is_binary()
:params
return value : true if the current WebSocket message is binary
:desc
Returns whether the message currently being handled by `WS(Request& context)` arrived as a binary frame.
If this returns `false`, the current message was delivered as a text frame.
: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