tornado-redis icon indicating copy to clipboard operation
tornado-redis copied to clipboard

Add the documentation and publish it on Read-The-Docs

Open leporo opened this issue 11 years ago • 2 comments

leporo avatar Sep 09 '13 07:09 leporo

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?

johanneswilm avatar Nov 11 '13 19:11 johanneswilm

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.

leporo avatar Nov 12 '13 10:11 leporo