struct Protocol::Network::WebSocketFrame

Overview

WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

Included Modules

Defined in:

protocol/network.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def mask : Bool #

WebSocket message mask.


[View source]
def opcode : Number::Primitive #

WebSocket message opcode.


[View source]
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.


[View source]