#[repr(u8)]
pub enum OpCode {
Show 16 variants
Continue,
Text,
Binary,
RNC3,
RNC4,
RNC5,
RNC6,
RNC7,
Close,
Ping,
Pong,
RC11,
RC12,
RC13,
RC14,
RC15,
}Expand description
Defines the interpretation of the “Payload data”. If an unknown opcode is received, the receiving endpoint MUST Fail the WebSocket Connection. The following values are defined.
- x0 denotes a continuation frame
- x1 denotes a text frame
- x2 denotes a binary frame
- x3-7 are reserved for further non-control frames
- x8 denotes a connection close
- x9 denotes a ping
- xA denotes a pong
- xB-F are reserved for further control frames
Variants§
Continue
- x0 denotes a continuation frame
Text
- x1 denotes a text frame
Binary
- x2 denotes a binary frame
RNC3
- x3-7 are reserved for further non-control frames
RNC4
- x3-7 are reserved for further non-control frames
RNC5
- x3-7 are reserved for further non-control frames
RNC6
- x3-7 are reserved for further non-control frames
RNC7
- x3-7 are reserved for further non-control frames
Close
- x8 denotes a connection close
Ping
- x9 denotes a ping
Pong
- xA denotes a pong
RC11
- xB-F are reserved for further control frames
RC12
- xB-F are reserved for further control frames
RC13
- xB-F are reserved for further control frames
RC14
- xB-F are reserved for further control frames
RC15
- xB-F are reserved for further control frames