> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# disconnected

Emitted when the WebSocket connection to the SIP server is lost or closed.

## Category

Connection

## Callback Parameters

None.

## Example

```typescript theme={null}
client.on('disconnected', () => {
  console.log('Disconnected from SIP server');
});
```

## More Information

* [connected](/click-to-call/sdk/event-reference/connected)
* [disconnect](/click-to-call/sdk/api-reference/disconnect)
* [destroy](/click-to-call/sdk/api-reference/destroy)
