Atmosphere/atmosphere — Issue #47: jquery.atmosphere.js add callback when websocket is really open
Author: GerjanOnline
Created: 2011-10-26 15:04:50+00:00
State: open

When you do:

$.atmosphere.subscribe(url, callback, $.atmosphere.request);

and RIGHT after that:

$.atmosphere.response.push(url);

The websocket may fail because it isn't open yet. (you have to check the state in the subscribe callback)

It would be nice to have an 'global' onopen callback where you can do your initial call for example