API Docs for:
Show:

rtc.signaling.Signaling Class

Extends events.EventEmitter
Module: rtc.signaling

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.

Item Index

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 Object

    New status object

Events

closed

()

The connection to the signaling server was closed

peer_joined

(
  • peer
)

A new peer joined the room

Parameters: