leporo / tornado-redis

Asynchronous Redis client that works within Tornado IO loop.
667 stars 163 forks source link

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

Open leporo opened 11 years ago

johanneswilm commented 10 years ago

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?

leporo commented 10 years ago

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.