Signature
bool ws_is_binary()
Parameters
return value : true if the current WebSocket message is binary
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.
Example
print(ws_is_binary() ? "binary frame" : "text frame (default outside a WS handler)", "\n");
Output
text frame (default outside a WS handler)