Esc

ws_negotiate

procedureextensionsince 0.36.1Source
  • macOS: ws_negotiate works on macOS
  • Linux: ws_negotiate works on Linux
  • Windows: ws_negotiate works on Windows
  • Wasm: ws_negotiate works on Wasm

Negotiates a bounded extension header; response=true forbids offers without a window value. Example: compression, error := ws_negotiate("permessage-deflate; client_max_window_bits").

Signature

ws_negotiate :: (value: string, response := false) -> (Ws_Deflate, Ws_Error)

See also