PubSubClientMethodsunsubscribeAsk a question|Copy page|View as Markdown|More actionsunsubscribe unsubscribe(channels): Promise<void> List of channels from which you want to unsubscribe. Parameters NameTypeDescriptionchannelsstring | string[]The channels to unsubscribe from, either in the form of a string (for one channel) or an array of strings. Returns Promise<void> Example 1await pubSubClient.unsubscribe("my-channel");2await pubSubClient.unsubscribe(["chan-2", "chan-3"]);