WSCSessionState Constants Reference

Declared in WSCSessionState.h

WSCSessionState

Represents the state of the WSCSession.

Definition

typedef NS_ENUM(NSInteger, WSCSessionState ) {
   WSCSessionStateNone,
   WSCSessionStateConnected,
   WSCSessionStateReconnecting,
   WSCSessionStateHibernated,
   WSCSessionStateSuspended,
   WSCSessionStateFailed,
   WSCSessionStateClosed,
};

Constants

WSCSessionStateNone

Initial session state. Session has been created.

Declared In WSCSessionState.h.

WSCSessionStateConnected

Session has connected with the server.

Declared In WSCSessionState.h.

WSCSessionStateReconnecting

Session’s connection with the server is broken; client is reconnecting to server.

Declared In WSCSessionState.h.

WSCSessionStateHibernated

Session has been hibernated.

Declared In WSCSessionState.h.

WSCSessionStateSuspended

Session is handed over and has been closed abnormally by code 1001 for suspension purposes.

Declared In WSCSessionState.h.

WSCSessionStateFailed

Session failed to connect or was abnormally closed.

Declared In WSCSessionState.h.

WSCSessionStateClosed

Session has been normally terminated.

Declared In WSCSessionState.h.

Declared In

WSCSessionState.h