*** id: d5db6a18-787e-4e41-9cce-fdfbb465becf title: disconnect slug: /node/reference/task/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(); ```