send max reconnect reached error code or event
Sometimes host application want to do something when atmosphere doesn't reconnect anymore. This can be solved by sending events:
$(document).trigger("atmosphere-reconnect-max-try-reached"); or $(document).trigger("atmosphere-error", errorCode);
or send error code as argument of onError function onError(errorCode)
In case you want to implement something like that, you may use event namespaces for it. see http://api.jquery.com/event.namespace/
@hapali @staabm Patch welcomed :-) Let's try to add it in 1.1.0.beta3. Thanks for the feedback!
onError is now called in 1.0.6 and up. Closing as fixed, let me know if not.