Event types used within SessionPropertiesListener.onSessionEvent.
Example:
session.clients.setSessionPropertiesListener(props, { // ... onSessionEvent : function(sessionID, event, properties, previous) { switch (event) { case session.clients.SessionEventType.DISCONNECTED : console.log(sessionID + " has disconnected"); break; case session.clients.SessionEventType.RECONNECTED : console.log(sessionID + " has reconnected"); break; } } // ... });
A session has disconnected.
A session has failed over from one server to another in a cluster.
A session has reconnected.
One or more relevant session properties have been updated.
Event types used within SessionPropertiesListener.onSessionEvent.
Example:
session.clients.setSessionPropertiesListener(props, { // ... onSessionEvent : function(sessionID, event, properties, previous) { switch (event) { case session.clients.SessionEventType.DISCONNECTED : console.log(sessionID + " has disconnected"); break; case session.clients.SessionEventType.RECONNECTED : console.log(sessionID + " has reconnected"); break; } } // ... });