uce/site/doc/pages/ws_opcode.txt
2026-06-16 12:21:31 +00:00

20 lines
389 B
Plaintext

:sig
u8 ws_opcode()
:params
return value : opcode of the current WebSocket message
:see
>websocket
:content
Returns the opcode of the message currently being handled by `WS(Request& context)`.
Common values are:
- `0x1` for text messages
- `0x2` for binary messages
:example
print("ws_opcode is resource-bound; configure the service or connection, then call it in request code.\n");