PUNSUBSCRIBE

Since 1.1.0Pub/Sub

Syntax

PUNSUBSCRIBE [pattern ...]
  • Flags: pubsub
  • ACL categories: @pubsub, @slow
  • Arity: -1

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

Reply

  • For each pattern, an acknowledgement: punsubscribe, the pattern, and how many subscriptions the connection has left.

Examples

> PUNSUBSCRIBE
1) "punsubscribe"
2) "n*"
3) (integer) 1