I am using laravel 5.1 and I want to know how many clients are listening to a particular channel say Test-Channel. I want this number on server? Is there any way I can get it? Further I am using Broadcasting with Redis.
The link to broadcasting document is as follows:
There is command for this in redis. Check out PUBSUB NUMSUB:
And PUBSUB NUMPAT:
Edit: It's also worth noting that the PUBLISH command also returns number of receivers: