rtc.signaling.SignalingPeer Class
Concept of a class implementing a signaling connection to a peer.
You do not have to extend this class, just implement the functionality.
Methods
send
(
Promise
-
event
-
data
Sends the event with the given payload to the remote peer
Parameters:
-
event
StringThe id of the event
-
data
ObjectThe payload of the event
Returns:
Promise:
Promise which will be resolved once the message is sent
Properties
first
Boolean
Whether the local user was in the room before the remote user (used to determine which peer will initiate the connection)
status
Object
The status object of the remote peer
Events
left
()
The remote peer left the room
message
(
-
event
-
data
Received a message from the remote peer
Parameters:
-
event
StringID of the event
-
data
ObejctPayload of the event
status_changed
(
-
status
The status object of the remote peer was updated
Parameters:
-
status
ObjectThe new status