Class Protocols.WebSocket.Frame
- Variable close_reason
stringProtocols.WebSocket.Frame.close_reason
- Variable data
stringProtocols.WebSocket.Frame.data- Description
Data part of the frame. Valid for frames of type FRAME_BINARY, FRAME_PING and FRAME_PONG.
- Variable fin
boolProtocols.WebSocket.Frame.fin- Description
Set to
1if this a final frame, i.e. the last frame of a fragmented message or a non-fragmentation frame.
- Variable opcode
FRAMEProtocols.WebSocket.Frame.opcode
- Variable options
mapping(string:mixed) Protocols.WebSocket.Frame.options- Description
Generic options for this frame.
- Variable reason
CLOSE_STATUSProtocols.WebSocket.Frame.reason- Description
Only exists for frames of type FRAME_CLOSE.
- Variable rsv
intProtocols.WebSocket.Frame.rsv- Description
Three reserved extension bits. Binary-and with
RSV1,RSV2orRSV3to single out the corresponding extension. TypicallyRSV1is set for compressed frames.
- Variable text
stringProtocols.WebSocket.Frame.text- Description
Only exists for frames of type FRAME_TEXT.
- Method create
Protocols.WebSocket.Frame Protocols.WebSocket.Frame(FRAMEopcode,void|string|CLOSE_STATUS)
Protocols.WebSocket.Frame Protocols.WebSocket.Frame(FRAME_TEXT,stringtext,void|boolfin)
Protocols.WebSocket.Frame Protocols.WebSocket.Frame(FRAME_BINARY,string(8bit)data,void|boolfin)
Protocols.WebSocket.Frame Protocols.WebSocket.Frame(FRAME_CONTINUATION,string(8bit)data,void|boolfin)
Protocols.WebSocket.Frame Protocols.WebSocket.Frame(FRAME_CLOSE,CLOSE_STATUSreason)
Protocols.WebSocket.Frame Protocols.WebSocket.Frame(FRAME_PING,string(8bit)data)
Protocols.WebSocket.Frame Protocols.WebSocket.Frame(FRAME_PONG,string(8bit)data)