Unsubscribe from a singular Redis channel.
method
RedisClient.unsubscribe
The channel to unsubscribe from.
If there are no more channels subscribed to, the client automatically re-enables pipelining if it was previously enabled.
Unsubscribing moves the channel back to a normal state out of the subscription state if all channels have been unsubscribed from. For further details on the subscription state, see .subscribe()
.
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.
Unsubscribing moves the channel back to a normal state out of the subscription state if all channels have been unsubscribed from. 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 will automatically re-enable pipelining if it was previously enabled.
Unsubscribing moves the channel back to a normal state out of the subscription state if all channels have been unsubscribed from. For further details on the subscription state, see .subscribe()
.
An array of channels to unsubscribe from.
If there are no more channels subscribed to, the client automatically re-enables pipelining if it was previously enabled.
Unsubscribing moves the channel back to a normal state out of the subscription state if all channels have been unsubscribed from. For further details on the subscription state, see .subscribe()
.