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

# disconnect

> disconnect method for the PubSub.Client class.

### disconnect

* **disconnect**(): `void`

Disconnects this client. The client will stop receiving events and you will need to create a new instance if you want to use it again.

#### Returns

`void`

#### Example

```js
client.disconnect();
```