new myPeer(idopt, optionsopt)
Instance of the client-side peer with which to communicate with other peers.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
id | string | <optional> | Other peers can connect to this peer using the provided ID. If no ID is given, one will be generated by the brokering server. |
options | Object | <optional> | Options for setting up the peer connection; required |
- Source
Listens to Events:
Events
on
Handles what happens when a new peer uses call().
- Source
Listeners of This Event:
on
Handles what happens when a new peer connects.
- Source