OptionalbufferOptionalcancelMaximum wait for a terminal response after CANCEL. Defaults to 5 seconds.
Capped at 2,147,483,647ms (the host timer ceiling); a larger value throws
a RangeError.
OptionalconnectionBounded inbox depth for reconnect.onEvent. Defaults to 64, matching
ingress. Overflow drops the oldest pending notification.
OptionalinitialDefault per-query send-ahead credit. Defaults to zero (unbounded).
OptionalmaxRejects a RESULT_BATCH declaring more rows than this. The connect helpers
default it to the maxBatchRows they put on the wire, so the request the
client makes is also the bound it enforces; decoder scratch is sized from
the declared row count and retained per pool slot, so an answer above the
request would set this session's memory floor for its lifetime.
OptionalonOptional notification immediately before an active query is re-executed. Not-yet-consumed batches are discarded automatically; callers that retain an already-consumed prefix should discard it here. Omitting this callback leaves replay enabled and is appropriate for idempotent consumers.
OptionalqueryDefault per-query deadline. Zero or undefined disables query deadlines.
Capped at 2,147,483,647ms (the host timer ceiling); a larger value throws
a RangeError.
OptionalreconnectBounded failover policy. Failover and at-least-once active-query replay are enabled by default; set false to keep one fixed connection.
OptionalserverSERVER_INFO handshake deadline. Defaults to 5 seconds. Capped at
2,147,483,647ms (the host timer ceiling); a larger value throws a
RangeError.
Maximum decoded batches waiting for a consumer. Defaults to 4.