Configured firebase instance or a specific firebase app if you have configured multiple apps.
A unique string identifying this peer from other peers. Used as the id
parameter in FirePeer.connect.
A unique string assigned by firebase when in authenticated state. This identifies the current user within firebase.
Used as the uid
parameter in FirePeer.connect.
Connect to a peer identified by a user id and peer id. Returns a promise that resolves to a FirePeerInstance.
Triggered when a new connection is established either initiated by you through FirePeer.connect or initiated by another peer.
Triggered when a connection failed either through FirePeer.connect or initiated by another peer.
Triggered when firebase auth state has changed. Firepeer only works if firebase is in authenticated state (FirePeer.uid is not null).
Generated using TypeDoc
Secure p2p signalling and authentication for simple-peer using firebase realtime database.