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

    Interface WebSocketReconnectionAttemptFailedEvent

    Emitted after a single reconnection attempt fails. The SDK enters the WebSocketConnectionState.AWAITING_RECONNECTION state and will retry after the backoff period.

    AvayaInfinityAgentSdk.subscribe(WebSocketConnectionEventType.RECONNECTION_ATTEMPT_FAILED, (event) => {
    const { error, retryAfter } = event.payload;
    console.log(`Reconnect failed: ${error.message}. Retrying in ${retryAfter}ms`);
    });
    interface WebSocketReconnectionAttemptFailedEvent {
        occurredAt: Date;
        type: RECONNECTION_ATTEMPT_FAILED;
        payload: WebSocketReconnectionAttemptFailedPayload;
    }

    Hierarchy (View Summary)

    Index

    Properties

    occurredAt: Date

    The timestamp when the event occurred.

    The event type identifier.

    The event payload containing event-specific data.