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.
Instance Methods
close
Closes the WebRTC Session Controller session.
- (void)closeDiscussion
Closes the WebRTC Session Controller session.
Declared In
WSCSession.hgenerateCorrelationId
Generate 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
Generate 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.hgenerateSubSessionId
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.hgetPackage:
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.hgetPackages
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.hgetProperty:
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.hgetSessionId
Gets the session ID.
- (NSString *)getSessionIdDiscussion
Gets the session ID.
Declared In
WSCSession.hgetSessionState
Gets the session state.
- (WSCSessionState)getSessionStateDiscussion
Gets the session state.
Declared In
WSCSession.hgetSubSession:
Returns a sub session from the WebRTC Session Controller session.
- (WSCSubSession *)getSubSession:(NSString *)subSessionIdParameters
- subSessionId
Sub session identifier for sub session to return.
Discussion
Returns a sub session from the WebRTC Session Controller session.
Declared In
WSCSession.hgetSubSessions
Gets sub sessions.
- (NSArray *)getSubSessionsDiscussion
Gets sub sessions.
Declared In
WSCSession.hgetSubSessionsByPackage:
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.hgetUsername
Gets the registered username associated with this session.
- (NSString *)getUsernameDiscussion
Gets the registered username associated with this session.
Declared In
WSCSession.hinitWithWSCSessionBuilder:
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.hopen
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