OptionalagentOptional HTTP(S) agent used for the WebSocket upgrade.
OptionalauthorizationOptionalauthTime allowed after TCP/TLS connection for HTTP authentication and the WebSocket upgrade.
Defaults to connectTimeoutMs when that is set, and to 15s otherwise, so
narrowing only the connect deadline bounds the whole opening rather than
being exceeded by a default nobody chose. Set this to give the slower
phase its own budget. Capped at 2,147,483,647ms (the host timer ceiling);
a larger value throws a RangeError.
OptionalclientOptionalcloseMaximum time allowed for a graceful WebSocket close. Defaults to 15s.
Capped at 2,147,483,647ms (the host timer ceiling); a larger value throws
a RangeError.
OptionalconnectNode TCP/TLS connection deadline, or the complete opening deadline in a
browser. Defaults to 15s. Capped at 2,147,483,647ms (the host timer
ceiling); a larger value throws a RangeError.
OptionalfailoverAdditional endpoints attempted in order when the preferred endpoint fails.
OptionalheadersOptionalmaxOptionalprotocolsOptionalsendMaximum time a send may remain queued by the WebSocket. Defaults to 15s.
Capped at 2,147,483,647ms (the host timer ceiling); a larger value throws
a RangeError.
OptionalwebTest hook; defaults to the Node-only ws implementation.
Node WebSocket connection settings: endpoints, upgrade headers, the TLS agent, authentication and opening deadlines. A pooled client's
clustertakes these, and the ingress and egress options extend them.