Emitted when an unexpected error occurs or the connection drops while in the WebSocketConnectionState.CONNECTED state. The SDK will automatically begin reconnection attempts.
AvayaInfinityAgentSdk.subscribe(WebSocketConnectionEventType.CONNECTION_ERROR, (event) => { console.error("Connection error:", event.payload.error.message);}); Copy
AvayaInfinityAgentSdk.subscribe(WebSocketConnectionEventType.CONNECTION_ERROR, (event) => { console.error("Connection error:", event.payload.error.message);});
WebSocketConnectionEventType.CONNECTION_ERROR
The timestamp when the event occurred.
The event type identifier.
The event payload containing event-specific data.
Emitted when an unexpected error occurs or the connection drops while in the WebSocketConnectionState.CONNECTED state. The SDK will automatically begin reconnection attempts.
Example
See
WebSocketConnectionEventType.CONNECTION_ERROR