method
RedisClient.unsubscribe
Unsubscribe from a single Redis channel.
If there are no more channels subscribed to, the client automatically re-enables pipelining if it was previously enabled.
Once all channels have been unsubscribed from, the client leaves the subscription state. For further details on the subscription state, see .subscribe().
The channel to unsubscribe from.
Remove a listener from a given Redis channel.
If there are no more channels subscribed to, the client automatically re-enables pipelining if it was previously enabled.
Once all channels have been unsubscribed from, the client leaves the subscription state. For further details on the subscription state, see .subscribe().
The channel to unsubscribe from.
The listener to remove. This is tested against referential equality so you must pass the exact same listener instance as when subscribing.
Unsubscribe from all registered Redis channels.
The client automatically re-enables pipelining if it was previously enabled.
Once all channels have been unsubscribed from, the client leaves the subscription state. For further details on the subscription state, see .subscribe().
Unsubscribe from multiple Redis channels.
If there are no more channels subscribed to, the client automatically re-enables pipelining if it was previously enabled.
Once all channels have been unsubscribed from, the client leaves the subscription state. For further details on the subscription state, see .subscribe().
An array of channels to unsubscribe from.