WSCSession Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | WSCSession.h |
Overview
WSCSession represents a session between the client and the WebRTC Session Controller server.
A client application is expected to create only one session towards the WebRTC Session Controller server for
each user. A session may have one or more sub-sessions.
When receiving an incoming message from WebRTC Session Controller, the session dispatches the message to the
appropriate package handler like WSCCallPackage in order to process the message.
iceServerConfig
ICE Server Configuration.
@property (nonatomic, readonly) WSCIceServerConfig *iceServerConfigDiscussion
ICE Server Configuration.
Declared In
WSCSession.h
– initWithWSCSessionBuilder:
Returns an initialized WSCSession object with session builder.
- (instancetype)initWithWSCSessionBuilder:(WSCSessionBuilder *)builderParameters
builder |
|---|
Discussion
Returns an initialized WSCSession object with session builder.
Declared In
WSCSession.h
– open
Opens the WebRTC Session Controller session based on initialization parameters to the Server. Status will be sent to WSCSessionObserverDelegate.
- (void)openDiscussion
Opens the WebRTC Session Controller session based on initialization parameters to the Server. Status will be sent to WSCSessionObserverDelegate.
Declared In
WSCSession.h
– close
Closes the connection towards the Server.
- (void)closeDiscussion
Closes the connection towards the Server.
Declared In
WSCSession.h
– hibernate:
Initiates a hibernate request towards the server. The deviceToken should have been passed during the session creation process. If not, the request will fail.
- (void)hibernate:(WSCHibernateParams *)paramsParameters
params |
Parameters for hibernation |
|---|
Discussion
Initiates a hibernate request towards the server. The deviceToken should have been passed during the session creation process. If not, the request will fail.
Declared In
WSCSession.h
– generateCorrelationId
Generates a correlation ID based on current outbound sequence number of this session. For example, if the current outbound sequence number is 100, “c101” is returned by this method
- (NSString *)generateCorrelationIdDiscussion
Generates a correlation ID based on current outbound sequence number of this session. For example, if the current outbound sequence number is 100, “c101” is returned by this method
Declared In
WSCSession.h
– generateSubSessionId
Generates a random UUID subsession id according to RFC 4122 v4.
- (NSString *)generateSubSessionIdDiscussion
Generates a random UUID subsession id according to RFC 4122 v4.
Declared In
WSCSession.h
– getPackage:
Returns a package from the WebRTC Session Controller session.
- (WSCPackage *)getPackage:(NSString *)packageTypeParameters
packageType |
Package name for package to return |
|---|
Discussion
Returns a package from the WebRTC Session Controller session.
Declared In
WSCSession.h
– getPackages
Returns all current packages in the WebRTC Session Controller session.
- (NSArray *)getPackagesDiscussion
Returns all current packages in the WebRTC Session Controller session.
Declared In
WSCSession.h
– getSubSessionsByPackage:
Returns all sub-sessions for a registered package.
- (NSArray *)getSubSessionsByPackage:(NSString *)packageNameParameters
packageName |
Package name |
|---|
Discussion
Returns all sub-sessions for a registered package.
Declared In
WSCSession.h
– getSubSession:
Returns a sub-session.
- (WSCSubSession *)getSubSession:(NSString *)subSessionIdParameters
subSessionId |
sub-session identifier for sub-session to return |
|---|
Discussion
Returns a sub-session.
Declared In
WSCSession.h
– putSubSession:
Adds a sub-session to the session.
- (void)putSubSession:(WSCSubSession *)subSessionParameters
subSession |
sub-session to add |
|---|
Discussion
Adds a sub-session to the session.
Declared In
WSCSession.h
– removeSubSession:
Removes a sub-session from the session.
- (void)removeSubSession:(NSString *)subSessionIdParameters
subSessionId |
sub-session identifier. |
|---|
Discussion
Removes a sub-session from the session.
Declared In
WSCSession.h
– getSubSessions
Gets all the sub-sessions in this session.
- (NSArray *)getSubSessionsDiscussion
Gets all the sub-sessions in this session.
Declared In
WSCSession.h
– getUsername
Gets the registered username associated with this session.
- (NSString *)getUsernameDiscussion
Gets the registered username associated with this session.
Declared In
WSCSession.h
– getSessionId
Gets the session ID.
- (NSString *)getSessionIdDiscussion
Gets the session ID.
Declared In
WSCSession.h
– getSessionState
Gets the session state.
- (WSCSessionState)getSessionStateDiscussion
Gets the session state.
Declared In
WSCSession.h
– getProperty:
Gets the property value for a given property name.
- (NSObject *)getProperty:(NSString *)nameParameters
name |
Name for the property |
|---|
Discussion
Gets the property value for a given property name.
Declared In
WSCSession.h
– sendMessage:
Sends a WebRTC Session Controller message frame to the session.
- (void)sendMessage:(WSCFrame *)frameParameters
frame |
WebRTC Session Controller frame to be sent. |
|---|
Discussion
Sends a WebRTC Session Controller message frame to the session.
Declared In
WSCSession.h