Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration SessionEventType

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;
         }
    }

    // ...
});

Index

Enumeration members

DISCONNECTED

DISCONNECTED: = 3

A session has disconnected.

FAILED_OVER

FAILED_OVER: = 2

A session has failed over from one server to another in a cluster.

RECONNECTED

RECONNECTED: = 1

A session has reconnected.

UPDATED

UPDATED: = 0

One or more relevant session properties have been updated.