Understanding JavaScript functions - Atmosphere/atmosphere Wiki

Functions definitions see for more information

When using the jQuery.atmosphere.js or atmosphere.js Javascript client, you have several functions you can set in order to get notified when events occurs:

Possible workflow

onOpen -> onMessage -> onClose // Normal

onTransportFailure -> onOpen -> onMessage -> onClose // transport not supported

onOpen -> onMessage -> [connection closed] -> onReconnect -> onClose -> onError // maxReconnectOnClose

onOpen -> onMessage -> [connection closed] -> onReconnect -> onMessage

onOpen -> [request.timeout expires] -> onClientTimeout