> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# disconnect

> Disconnects the WebSocket and tears down the current session.

```ts
disconnect(): Promise<void>
```

Disconnects the WebSocket and tears down the current session.

The client can be reconnected by calling [connect](#connect) again,
which creates a fresh transport and session.

## **Examples**

```ts
await client.disconnect();
```