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.

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
stats, err := server.PubSubNumSub()