Added support of onConnectionLost and onSessionReconnected events.
onConnectionLost event