*** id: 48ba042e-c08e-44da-ae0a-2871199a7dac title: unsubscribe slug: /node/reference/pubsub/client/unsubscribe description: unsubscribe method for the Client class. max-toc-depth: 3 ---------------- ### unsubscribe * **unsubscribe**(`channels`): `Promise` List of channels from which you want to unsubscribe. #### Parameters | Name | Type | Description | | :--------- | :--------------------- | :--------------------------------------------------------------------------------------------------------- | | `channels` | `string` \| `string[]` | The channels to unsubscribe from, either in the form of a string (for one channel) or an array of strings. | #### Returns `Promise` #### Example ```js await pubSubClient.unsubscribe("my-channel"); await pubSubClient.unsubscribe(["chan-2", "chan-3"]); ```