MCPcopy
hub / github.com/SnapDrop/snapdrop / constructor

Method constructor

client/scripts/network.js:231–235  ·  view source on GitHub ↗
(serverConnection, peerId)

Source from the content-addressed store, hash-verified

229class RTCPeer extends Peer {
230
231 constructor(serverConnection, peerId) {
232 super(serverConnection, peerId);
233 if (!peerId) return; // we will listen for a caller
234 this._connect(peerId, true);
235 }
236
237 _connect(peerId, isCaller) {
238 if (!this._conn) this._openConnection(peerId, isCaller);

Callers

nothing calls this directly

Calls 1

_connectMethod · 0.95

Tested by

no test coverage detected