OptionalauthOptionalcloseMaximum 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.
OptionalingressTime allowed for the optional ingress SERVER_INFO message. Defaults to
250ms; zero disables the initial wait while retaining late negotiation.
Capped at 2,147,483,647ms (the host timer ceiling); a larger value throws
a RangeError.
OptionalprotocolsOptionalrequestRequests durable ingress ACKs through browser-visible WebSocket subprotocol negotiation.
OptionalsendMaximum 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.
OptionalsessionAuthenticates over REST before every WebSocket connection attempt so the
browser can attach QuestDB's HttpOnly session cookies to the upgrade.
Cannot be combined with auth.
OptionalwebTest or framework hook; defaults to the browser's global WebSocket.
Authenticates every WebSocket upgrade with a credential carried in its subprotocol offer instead of a session cookie. This is how a web application served from another origin, which QuestDB lists in
qwp.browser.allowed.origins, connects. Pass a fixed credential, or a QwpBrowserAuthProvider the client calls before every connect, reconnect, and failover attempt, for example to supply a refreshed OIDC access token.QuestDB accepts the credential only from a listed origin: a page served from QuestDB's own origin must be listed too, or keep using
sessionBootstrap. It creates no session for the credential and ignores cookies on the upgrade. Usewss:: the credential travels in the opening HTTP request. Cannot be combined withsessionBootstrap.