Atmosphere/atmosphere — Issue #40: Jquery Pub/Sub with multiple channel hangs 
Author: vyvakz
Created: 2011-10-19 21:05:27+00:00
State: open

I have been trying to subscribe to multiple channels using the Jquery pub/sub example which actually hangs when i try to subscribe and publish.

Code Snippet -
for(var i = 0; i < 10; i++) {
subscribe(i);
}
function subscribe(channel_id) {
// jquery.atmosphere.response
function callback(response) {
// Websocket events.
$.atmosphere.log('info', ["response.state: " + response.state]);

------------------------------------------------------------------------------
on click hangs the request

------------------------------------------------------------------------------

Environment -
atmosphere 0.7.2
Tomcat 7.0.12 with Nio connector

Any help would be great!!

Thanks,
-Viv