Class: Session

module:Session~Session(qosLevelUp, qosLevelDown, alertingMode, alertPause, recoveryPause, state, id, addresses, quality, measurement)

Session class. Options to build , generate and parse sessions

Constructor

new Session(qosLevelUp, qosLevelDown, alertingMode, alertPause, recoveryPause, state, id, addresses, quality, measurement)

Constructor for the ReqQ4S class. Does not validate input data coherence.
Parameters:
Name Type Description
qosLevelUp number Contains the QoS level for uplink. May be changed during session
qosLevelDown number Contains the QoS level for downlink. May be changed during session
alertingMode number The configured alert mode setted up for this session.
alertPause number Alert pause value, number of miliseconds between Alert q4s messages.
recoveryPause Number Number of miliseconds to wait.
state Number The State of the current session
id Number The session Id of this session.
addresses Addresses The IP version of the client address.
quality MeasurementSet The client IP address.
measurement DefaultProcedure The client IP address.
Source:

Methods

(async, static) fromClientOps(options) → {Session}

Creates a session from the options passed-
Parameters:
Name Type Description
options Object Options
Source:
Returns:
- A new session
Type
Session

(async, static) serverGenerate(sdp, serverOps) → {Session}

Generates a session with an sdp and serveroptions.
Parameters:
Name Type Description
sdp String
serverOps Object
Source:
Returns:
- A new session
Type
Session

toSdp() → {string}

Returns a promise with the sdp representation of this session
Source:
Returns:
- Sdp format of this session.
Type
string

updateWithSDP(sdp)

Factory static method to generate a new session from an SDP.
Parameters:
Name Type Description
sdp string The sdp message to generate a new session.
Source: