struct Protocol::Network::WebSocketFrame
- Protocol::Network::WebSocketFrame
- Struct
- Value
- Object
Overview
WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
Included Modules
- JSON::Serializable
Defined in:
protocol/network.crConstructors
Instance Method Summary
-
#mask : Bool
WebSocket message mask.
-
#opcode : Number::Primitive
WebSocket message opcode.
-
#payload_data : String
WebSocket message payload data.
Constructor Detail
Instance Method Detail
def payload_data : String
#
WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.