Entering WebSocketConnectionState.CONNECTING state (init()).
Successfully connected or reconnected - entering WebSocketConnectionState.CONNECTED.
Unexpected error or disconnection while in WebSocketConnectionState.CONNECTED. The SDK will transition to WebSocketConnectionState.RECONNECTING and begin automatic reconnection attempts.
A single reconnection attempt failed. The SDK enters WebSocketConnectionState.AWAITING_RECONNECTION and will retry after the backoff period indicated by WebSocketReconnectionAttemptFailedPayload.retryAfter.
Entering WebSocketConnectionState.RECONNECTING state.
Fired when a backoff/cooldown period completes, or when
retryWebSocketConnection() is called from the WebSocketConnectionState.FAILED state.
All reconnection attempts exhausted - entering WebSocketConnectionState.FAILED.
Call retryWebSocketConnection() to manually trigger a new reconnection sequence.
Connection intentionally torn down via destroy(), or initial connect failure -
entering WebSocketConnectionState.CLOSED.
The set of events emitted when the SDK's WebSocket connection changes state.
Subscribe to these via AvayaInfinityAgentSdk.subscribe to drive connection-state UI (e.g. a "reconnecting…" banner) and to detect unrecoverable loss of connectivity.
Example