Skip to main content
Triggered when the WebSocket connection is closed by the server or due to an error.

Event Properties

string
Event type. Always "conversation.connected.close" for this event.
string
Optional message describing the reason for connection closure.Example: "Connection closed by server" or "Session timeout"

Usage Example

This event may also be received through the WebSocket’s onclose event handler. Handle both cases appropriately.