*** id: aee33096-6425-4b61-b51c-7cee137beeb8 title: disconnect slug: /node/reference/pubsub/client/disconnect description: disconnect method for the 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(); ```