class

Sellia::Protocol::Messages::WebSocketFrame

Inherits Sellia::Protocol::Message / MessagePack::Serializable / Reference / Object

Bidirectional: WebSocket frame data opcode: 0x01=text, 0x02=binary, 0x08=close, 0x09=ping, 0x0A=pong

Constructors

new(request_id : String, opcode : UInt8, payload : Bytes, fin : Bool = true)
Source

Bidirectional: WebSocket frame data opcode: 0x01=text, 0x02=binary, 0x08=close, 0x09=ping, 0x0A=pong

Source

Instance methods

fin=(fin : Bool)
Source
opcode
Source
opcode=(opcode : UInt8)
Source
payload
Source
payload=(payload : Bytes)
Source
request_id
Source
request_id=(request_id : String)
Source
type

Abstract method that each message type must implement

Source
type=(type : String)
Source