OptionalauthOptionalackTimeoutMs?: numberWait for the acknowledgement this long before failing the connection (default 5000).
OptionalrequireAck?: booleanRequire a positive acknowledgement (default true). Set false only for a proxy build known to answer nothing: the connection then counts as authenticated on transport open, and one AUTH_UNACKNOWLEDGED warning is raised per connection so the missing guarantee is visible rather than silently assumed.
OptionalheartbeatLiveness watchdog. After timeoutMs with no inbound frame the client asks
the far end a direct question and gives it probeMs to answer; only
silence to that counts as death, and the socket is then reconnected
(defaults 45000 and 5000; a timeoutMs of 0 disables the watchdog).
OptionalreconnectAuto-reconnect after an unexpected close: re-authenticate and resubscribe
every active subscription, with jittered exponential backoff. Enabled by
default; close() is treated as intentional and never reconnects.
OptionalbaseDelayMs?: numberOptionalenabled?: booleanOptionaljitter?: booleanFull jitter on each delay (default true). Off gives the old lockstep timing.
OptionalmaxAttempts?: numberOptionalmaxDelayMs?: numberOptionalrandom?: () => numberInjectable [0,1) source, so a test pins the delay instead of guessing it.
Optionalsocket
Handshake gating. Data frames wait for the server's answer to
authenticate.