QuestDB JavaScript Client - v5.0.0
    Preparing search index...

    Interface QwpIngressReconnectOptions

    Ingress reconnect and replay policy: the reconnect option of an ingress session.

    As in the Java, Rust and Python clients, a session that has connected is not stopped by any configured limit. Transport and endpoint failures are retried until close(), and only a terminal error ends the session. reconnectMaxDurationMs bounds a synchronous initial connect only.

    interface QwpIngressReconnectOptions {
        maxFrameRejections?: number;
        onEvent?: (event: QwpReconnectEvent) => void;
        poisonMinEscalationWindowMs?: number;
        reconnectInitialBackoffMs?: number;
        reconnectMaxBackoffMs?: number;
        reconnectMaxDurationMs?: number;
    }
    Index

    Properties

    maxFrameRejections?: number

    Consecutive retriable rejections of one frame before it is treated as poison and retained for inspection. Defaults to 4.

    onEvent?: (event: QwpReconnectEvent) => void
    poisonMinEscalationWindowMs?: number

    Minimum time the same frame must remain suspect before repeated rejections or non-orderly closes become terminal. Defaults to 5 seconds; zero escalates as soon as maxFrameRejections is reached.

    reconnectInitialBackoffMs?: number

    Full-jitter ceiling before the first failed connection sweep is retried. Must not exceed 2_147_483_647ms. Defaults to 100ms.

    reconnectMaxBackoffMs?: number

    Full-jitter exponential-backoff ceiling. Must not exceed 2_147_483_647ms. Defaults to 5 seconds.

    reconnectMaxDurationMs?: number

    How long a synchronous initial connect keeps retrying before it fails with QwpReconnectExhaustedError. Defaults to 5 minutes. Zero allows one attempt and no retries, as in the Rust and Python clients; the attempt itself is not cut short. Reconnects after the first connection do not consult it, and neither does an initial connect that runs in the background (initialConnectMode "async", which Node's initial_connect_retry=async and the pooled client's lazy_connect also select): both retry until close() or a terminal error.