Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onOpen() callback function in jquery.atmospehere.js does not fire properly when using long-polling #816

Closed
freedom1989 opened this issue Jan 15, 2013 · 1 comment
Labels

Comments

@freedom1989
Copy link
Contributor

when use long-polling as the transport, onOpen callback function fires not properly.

var socket = $.atmosphere;
request.onOpen(response){
    //here will get "subSocket is undefined".
    subSocket.push(something);
}
var subSocket = socket.subscribe(request);

more details please ref to here:
https://groups.google.com/forum/?fromgroups=#!topic/atmosphere-framework/laiDwX2jIIM
and I think onOpen function should be fired after the subscribe() function finished as the same as we use websocket.
please fix it.

@jfarcand
Copy link
Member

Fixed by #833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants