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`);}); Copy
AvayaInfinityAgentSdk.subscribe(WebSocketConnectionEventType.RECONNECTION_ATTEMPT_FAILED, (event) => { const { error, retryAfter } = event.payload; console.log(`Reconnect failed: ${error.message}. Retrying in ${retryAfter}ms`);});
WebSocketConnectionEventType.RECONNECTION_ATTEMPT_FAILED
The timestamp when the event occurred.
The event type identifier.
The event payload containing event-specific data.
Emitted after a single reconnection attempt fails. The SDK enters the WebSocketConnectionState.AWAITING_RECONNECTION state and will retry after the backoff period.
Example
See
WebSocketConnectionEventType.RECONNECTION_ATTEMPT_FAILED