Skip to main content

PUBSUB NUMSUB

Syntax

PUBSUB NUMSUB [channel [channel ...]]

Module

pubsub

Categories

pubsub slow

Description

Return an array of arrays containing the provided channel name and how many clients are currently subscribed to the channel.

Examples

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()