trying to port web app starter from PHP
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
:sig
|
||||
String ws_message()
|
||||
|
||||
:params
|
||||
return value : payload of the current WebSocket message
|
||||
|
||||
:desc
|
||||
Returns the payload of the current WebSocket message being handled by `WS(Request& context)`.
|
||||
|
||||
For text frames this is the decoded text payload. For binary frames this String contains the raw message bytes.
|
||||
|
||||
Use `ws_is_binary()` or `ws_opcode()` to decide how the payload should be interpreted.
|
||||
|
||||
:see
|
||||
>websocket
|
||||
Reference in New Issue
Block a user