Esc

Ws_Event

structextensionsince 0.36.1Source
  • macOS: Ws_Event works on macOS
  • Linux: Ws_Event works on Linux
  • Windows: Ws_Event works on Windows
  • Wasm: Ws_Event works on Wasm

Declaration

Ws_Event :: struct {
    kind: Ws_Event_Kind;    opcode: Ws_Opcode;    data: [] u8;    code: u16;    error: Ws_Error;}

One event. data is a borrowed view of the message or control payload, valid until the next parse. opcode tells text from binary; code is the status of a close frame.

See also