rtc.signaling.Signaling Class
Concept of a class implementing signaling. Might use a rtc.signaling.Channel
to abstract the connection to the server.
You do not have to extend this claass, just implement the functionality.
Methods
close
()
Closes the connection to the signaling server
connect
()
Promise
Establishes the connection with the signaling server
Returns:
Promise:
Promise which is resolved when the connection is established
setStatus
(
-
obj
Sets the local status object and broadcasts the change to the peers
Parameters:
-
obj
ObjectNew status object
Events
closed
()
The connection to the signaling server was closed
peer_joined
(
-
peer
A new peer joined the room
Parameters:
-
peer
rtc.signaling.SignalingPeerThe new peer