Subscribe to a Redis channel.
Subscribing disables automatic pipelining, so all commands will be received immediately.
Subscribing moves the channel to a dedicated subscription state which prevents most other commands from being executed until unsubscribed. Only .ping()
, .subscribe()
, and .unsubscribe()
are legal to invoke in a subscribed upon channel.