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

    // ...
});
deprecated

since 6.11

This type is required for the deprecated SessionPropertiesListener which is used with the deprecated ClientControl.setSessionPropertiesListener.

Use the new ClientControl.addSessionEventListener, which provides greater functionality and reports sessions at all cluster members. This interface will be removed in a future release.

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.