tornado-redis
tornado-redis copied to clipboard
Add the documentation and publish it on Read-The-Docs
Hey, good point. I'm trying to browse through the sources trying to find out how I can get a "subscribers list" or at least the current number of subscribers of a specific pubsub channel when using regular tornado websockets?
Do you use the BaseSubscriber
/SockJSSubscriber
/SocketIOSubscriber
helper classes?
If you do, you may get a list of channel subscribers like this: subscriber.subscribers[channel_name]
.
If you use the 'websockets' demo approach, you're using a new instance of tornado-redis client for each subscription.