Here are the provided event registration functions:
Ice.onSendReceive(id, sendCallback, receiveCallback)
id – the identifier of an element that is the parent or the child of the element owning the bridge instance (most of the time is the 'body' element)
sendCallback – callback invoked when the request is initiated
receiveCallback – callback invoked when response is received
Ice.onAsynchronousReceive(id, callback)
id – the identifier of an element that is the parent or the child of the element owning the bridge instance (most of the time is the 'body' element)
callback – callback invoked when a push response is received
Ice.onServerError(id, callback)
id – the identifier of an element that is the parent or the child of the element owning the bridge instance (most of the time is the 'body' element)
callback – callback invoked when server side error occurs, the callback gets the content/body of the response in its first parameter
Ice.onSessionExpired(id, callback)
id – the identifier of an element that is the parent or the child of the element owning the bridge instance (most of the time is the 'body' element)
callback – callback invoked when session expired or it was invalidated
Ice.onConnectionTrouble(id, callback)
id – the identifier of an element that is the parent or the child of the element owning the bridge instance (most of the time is the 'body' element)
callback – callback invoked when heartbeat pings are lost (asynchronous mode)
Ice.onConnectionLost(id, callback)
id – the identifier of an element that is the parent or the child of the element owning the bridge instance (most of the time is the 'body' element)
callback – callback invoked when connection to server was lost
Added bridge and connection event notification methods.