Jquery Pub/Sub with multiple channel hangs

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Jquery Pub/Sub with multiple channel hangs

vyvakz
This post has NOT been accepted by the mailing list yet.
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]);
------------------------------------------------------------------------------      
        <a href="javascript:send_message(0)" title="For Bidding" >on click hangs the request

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

Environment -
atmosphere 0.7.2
Tomcat 7.0.12 with Nio connector

Any help would be great!!


Thanks,
-Viv

Loading...