*** id: 25b86510-34f5-43e1-bd40-fe044981e5c0 title: disconnect slug: /js/reference/pubsub/client/disconnect description: disconnect method for the PubSub.Client class. max-toc-depth: 3 ---------------- ### 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(); ```