Publish
Return value Integer response: number of clients who received the message.
Thus, when you publish to your channel, they tell you how many users are connected.
You can also track this yourself, using incr to increase the counter when someone subscribes to this channel and decr to unsubscribe from this channel. Thus, you can always find out how many users are connected to this channel.
Alfred
source share