OptionalbufferedLow-water threshold used to resume a backpressured sender.
OptionalframingPacketization and reassembly bounds.
OptionalheadersExtra handshake headers; browsers cannot set arbitrary headers.
OptionalmaxAbort sends if the socket buffers more than this many bytes.
OptionalprotocolsWebSocket subprotocol or ordered preference list.
OptionalwebCustom constructor for tests or non-browser runtimes.
HTTP handshake, framing, and socket backpressure options.
This client speaks RFC 6455 WebSocket over HTTP/1.1 (via the browser
WebSocketor the Nodewspackage). It connects directly to an A11 native server whoseenable_http1protocol option is on (the default) -- no WebSocket-over-HTTP/2 bridge is required. The HTTP version is fixed by the underlying runtime and is not configurable here.