: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");
