data-cap
    Preparing search index...

    Interface SubscriptionInfo

    Current connection/lifecycle metadata for a field's subscription, if it has one.

    interface SubscriptionInfo {
        connectedAt?: number;
        disconnectedAt?: number;
        error?: DataError;
        lastEventAt?: number;
        reconnectAttempt?: number;
        source?: string;
        status:
            | "error"
            | "connecting"
            | "connected"
            | "reconnecting"
            | "disconnected";
    }
    Index
    connectedAt?: number

    When the subscription most recently entered "connected", as epoch ms.

    disconnectedAt?: number

    When the subscription most recently entered "disconnected", as epoch ms.

    error?: DataError

    The error the connection settled with, if it's currently in an "error" status.

    lastEventAt?: number

    When the subscription most recently delivered an event, as epoch ms.

    reconnectAttempt?: number

    How many consecutive reconnect attempts have occurred since the last successful connection.

    source?: string

    The subscription operation key that owns this connection.

    status: "error" | "connecting" | "connected" | "reconnecting" | "disconnected"

    The subscription's current connection status.