SignalingMessageBuilder

SignalingMessageBuilder

Class representing a SignalingMessageBuilder instance.

Methods

(private, static) getPeerListMessage(showAll) → {peerListMessage}

Parameters:
Name Type Description
showAll boolean
Source:

(private, static) setUserDataMessage(roomState) → {userDataMessage}

Parameters:
Name Type Description
roomState SkylinkState
Source:

(static) streamMessage(roomKey, user, stream, status, options) → {JSON}

Function that builds the 'stream' socket message.

Parameters:
Name Type Description
roomKey String

The room rid.

user SkylinkUser

The peer sending the streamMessage.

stream MediaStream

The media stream.

status String

The stream status.

options Object
Properties
Name Type Description
isScreensharing String

The flag if the ended stream is a screensharing stream.

Source: