PUBSUB NUMSUB

Since 1.1.0Pub/Sub

Syntax

PUBSUB NUMSUB [channel ...]

Returns how many clients are subscribed to each of the given channels, not counting pattern subscriptions.

Examples

> PUBSUB NUMSUB news x
1) "news"
2) (integer) 1
3) "x"
4) (integer) 0