rtc.signaling.WebSocketChannel Class
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
send
(
Promise
-
msg
Sends a message to the signaling server
Parameters:
-
msg
ObjectThe message to send
Returns:
Promise:
Promise which is resolved when the message is sent
Events
closed
()
The connection to the signaling server was closed
message
(
-
msg
A message was received from the signaling server
Parameters:
-
msg
ObjectThe received message