@avaya/infinity-agent-sdk - v1.0.0
    Preparing search index...

    WebSocket connection health snapshot. Cumulative counters that survive SDK init()/destroy() cycles within a page session (reset only on page reload). Populated by the internal MetricsAggregator; exposed via SdkLogExport.metrics.ws.

    interface SdkWsMetrics {
        currentState: WebSocketConnectionState;
        totalReconnectAttempts: number;
        totalDisconnects: number;
        lastDisconnectAt: number | null;
        lastReconnectAt: number | null;
    }
    Index

    Properties

    Current WebSocket connection state at snapshot time.

    totalReconnectAttempts: number

    Total failed reconnect attempts across the session. Incremented once per WebSocketConnectionEventType.RECONNECTION_ATTEMPT_FAILED event.

    totalDisconnects: number

    Total observed disconnects after the initial connect succeeded. Incremented once per WebSocketConnectionEventType.CONNECTION_ERROR event that follows at least one successful connect. Initial-connect failures are NOT counted.

    lastDisconnectAt: number | null

    Epoch-ms timestamp of the most recent disconnect, or null if none observed.

    lastReconnectAt: number | null

    Epoch-ms timestamp of the most recent successful reconnect, or null if none observed. The initial connect success does NOT populate this field.