The other client's ID.
Disconnects from all other p2p clients.
Forces the usage of a relay (TURN) server, to avoid sharing IP addresses with the other peers.
Whether relay-only should be enabled or disabled.
Returns the list of all currently connected peers.
Returns the own current peer ID.
Return peers that have disconnected in the frame.
Helper function to get the messages list for a given message name.
Returns true once PeerJS finished initialization.
Send a message to a specific peer.
The IDs of the clients to send the event to.
The event to trigger.
Connects to a custom broker server.
The host of the broker server.
The port of the broker server.
The path (part of the url after the host) to the broker server.
Optional password to connect to the broker server.
Use ssl?
Adds an ICE server candidate, and removes the default ones provided by PeerJs. Must be called before connecting to a broker.
The URL of the STUN/TURN server.
An optional username to send to the server.
An optional password to send to the server.
Generated using TypeDoc
Connects to another p2p client.