Esc

Ws_Config

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

Declaration

Ws_Config :: struct {
    limits: Ws_Options;    compression := true;    protocols: [] string;    handshake_timeout: s64 = 30000;    read_timeout: s64;    write_timeout: s64 = 30000;    close_timeout: s64 = 5000;}

Settings for ws_upgrade and ws_connect. protocols lists the subprotocols to offer or accept in preference order and must outlive the connection. Timeouts are in milliseconds; 0 or less means none.

See also