Declaration
Ws_Codec :: struct {
role: Ws_Role; options: Ws_Options; compression: Ws_Deflate; header: [14] u8; header_count: int; header_size: int = 2; length: s64; received: s64; offset: s64; opcode: Ws_Opcode; message_opcode: Ws_Opcode; final: bool; masked: bool; compressed: bool; fragmented: bool; delivered: bool; closed: bool; utf_remaining: int; utf_low: u8 = 0x80; utf_high: u8 = 0xBF; message: [..] u8; control: [..] u8; dictionary: [..] u8; error: Ws_Error;}An incremental frame parser for one direction of a connection. Set role, options and
compression before the first ws_parse; the other fields are its state. Release it with
ws_free.