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

# disconnected

> The disconnected event fires when the WebSocket connection to the SIP server is lost or closed.

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](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/connected.md)
* [disconnect](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/disconnect.md)
* [destroy](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/destroy.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.