PUBSUB CHANNELS

Since 1.1.0Pub/Sub

Syntax

PUBSUB CHANNELS [pattern]

Returns the channels with at least one subscriber, or those matching a glob-style pattern. Pattern subscriptions are not counted.

Examples

> PUBSUB CHANNELS
1) "news"
2) "sport"
> PUBSUB CHANNELS s*
1) "sport"