Esc

Ws_Connection

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

Declaration

Ws_Connection :: struct {
    codec: Ws_Codec;    config: Ws_Config;    protocol: string;    link: Http.Link;    pending: [] u8;    initial: [] u8;    buffer: [16384] u8;    write_lock: Io.Fiber_Mutex;    dictionary: [..] u8;    close_sent: bool;    owned: bool;    disposed: bool;}

Connection values must not be copied after first use. One reader and one writer may run concurrently.

See also