Setu-TS
    Preparing search index...

    Interface ReconnectSupervisorOptions

    Options for ReconnectSupervisor.

    0.10.0

    interface ReconnectSupervisorOptions {
        attachFaultListener: (onFault: () => void) => () => void;
        attachRecoveryListener?: (onRecovered: () => void) => () => void;
        initialMs?: number;
        maxMs?: number;
        mode: ReconnectMode;
        reassert?: () => Promise<void>;
        reconnect?: () => Promise<void>;
        replay?: () => Promise<void>;
        runtime: IRuntimeServices;
    }
    Index
    attachFaultListener: (onFault: () => void) => () => void

    Register a fault listener on the current connection and return a disposer that removes it. The supervisor calls this on start and, in drive mode, after each successful reconnect (the connection is recreated), and calls the returned disposer when re-attaching or tearing down.

    attachRecoveryListener?: (onRecovered: () => void) => () => void

    (observe) Register a recovery listener and return a disposer that removes it.

    initialMs?: number

    First backoff window, in milliseconds.

    500
    
    maxMs?: number

    Backoff ceiling, in milliseconds.

    30000
    

    drive reconnects; observe only tracks fault/recovery.

    reassert?: () => Promise<void>

    (drive) Re-assert broker-level state (e.g. the exchange) after a successful reconnect.

    reconnect?: () => Promise<void>

    (drive) Re-establish the connection and channel. Called on each attempt.

    replay?: () => Promise<void>

    (drive) Replay every active subscription after a successful reconnect.

    Runtime services providing the monotonic timer surface.