*** id: 1d34e9d2-8e14-4f08-95f6-0e7e37a74b80 title: unsubscribe slug: /js/reference/chat/client/unsubscribe max-toc-depth: 3 ---------------- * **unsubscribe**(`channels`): `Promise` List of channels from which you want to unsubscribe. ## Parameters 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 chatClient.unsubscribe("my-channel"); await chatClient.unsubscribe(["chan-2", "chan-3"]); ```