AttentionThis page is from an older version. Click here to go the latest version.
PSUBSCRIBE pattern [pattern ...]
This command subscribes the client to the specified pattern(s). The client will receive a message whenever a publisher sends a message to a channel that matches any of the patterns that it has subscribed to.