PUBSUB NUMSUB
Syntax
PUBSUB NUMSUB [channel [channel ...]]
Module
pubsubCategories
pubsub slowDescription
Return an array of arrays containing the provided channel name and how many clients are currently subscribed to the channel.
Examples
- Go (Embedded)
- CLI
Return an array of arrays containing the provided channel name and how many clients are currently subscribed to the channel.
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
stats, err := server.PubSubNumSub()
Return an array of arrays containing the provided channel name and how many clients are currently subscribed to the channel.
> PUBSUB NUMSUB channel1 channel2