> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # unsubscribe > unsubscribe method for the PubSub.Client class. ### unsubscribe * **unsubscribe**(`channels`): `Promise` List of channels from which you want to unsubscribe. #### Parameters **`channels`** `string | string[]` — required 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 pubSub.unsubscribe("my-channel"); await pubSub.unsubscribe(["chan-2", "chan-3"]); ``` > unsubscribe method for the PubSub.Client class.