Multiple Subscriptions in one web session

Mar 5, 2011 at 5:03 PM

Hello,

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!

Chris

Coordinator
Mar 7, 2011 at 4:35 AM

Chris,

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.

Tomasz