Multiple Subscriptions in one web session

Mar 5, 2011 at 6:03 PM


my problem is that i must subscribe to more than one topic (n-topics) in a web session with jquery.

Is that possible? I use the customized string topic example in the fork directory!

Thank you for your help!


Mar 7, 2011 at 5:35 AM


yes, it is absolutely possible. You can call $.pubsub.subscribe function multiple times to subscribe to many topics. Under the hood, all subscriptions are multiplexed over a single HTTP long poll request to reduce the usage of the connection limits in the browser environment.