Util helper functions
- Source:
Members
(static, constant) exports.disconnect
Disconnects from the signaling server.
- Source:
(static, constant) exports.generateUUID
Function that generates an UUID (Unique ID).
- Source:
(static, constant) exports.getParamValidity
Function that tests if a param is null, undefined or a string.
- Source:
(static, constant) exports.getRoomStateByName
Function that returns the room state.
- Source:
(static, constant) exports.getStateByKey
Function that returns the Skylink state.
- Source:
(static, constant) exports.getStateByRid
Function that returns the Skylink state.
- Source:
(static, constant) exports.hasAudioTrack
Function that checks if a media stream has an audio track.
- Source:
(static, constant) exports.hasVideoTrack
Function that checks if a media stream has a video track.
- Source:
(static, constant) exports.isABoolean
Function that tests if type is 'Boolean'.
- Source:
(static, constant) exports.isAFunction
Function that tests if type is 'Function'.
- Source:
(static, constant) exports.isAgent
Function that checks the browser agent.
- Source:
(static, constant) exports.isANumber
Function that tests if type is 'Number'.
- Source:
(static, constant) exports.isAObj
Function that tests if type is 'Object'.
- Source:
(static, constant) exports.isAString
Function that tests if type is 'String'.
- Source:
(static, constant) exports.isEmptyArray
Function that tests if an array is empty.
- Source:
(static, constant) exports.isEmptyObj
Function that tests if an object is empty.
- Source:
(static, constant) exports.isEmptyString
Function that tests if a string is an empty string.
- Source:
(static, constant) exports.isLowerThanVersion
Function that checks the agent version compatibility.
- Source:
(static, constant) exports.isNull
Function that tests if type is 'Null'.
- Source:
(static, constant) exports.isValidPeerId
Function that checks if the peerId exists on the peerConnection
- Source:
(static, constant) exports.isVersion
Function that checks the browser version.
- Source:
(static, constant) exports.rejectPromise
Function that always returns are rejected Promise.
- Source:
(static, constant) exports.statelessGetUserMedia
Function that returns the getUserMedia stream when the user had not joined a room (is stateless)
- Source:
(static, constant) exports.updateReplacedStreamInState
Function that updates the replaced state of the streams
- Source: