UNSUBSCRIBE

Since 1.1.0Pub/Sub

Syntax

UNSUBSCRIBE [channel ...]
  • Flags: pubsub
  • ACL categories: @pubsub, @slow
  • Arity: -1

Unsubscribes this connection from channels, or from all of them if none is given.

Reply

  • For each channel, an acknowledgement: unsubscribe, the channel, and how many subscriptions the connection has left. At 0, the connection can send any command again.

Examples

> UNSUBSCRIBE news
1) "unsubscribe"
2) "news"
3) (integer) 2