MCPcopy Create free account
hub / github.com/SnapDrop/snapdrop / constructor

Method constructor

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

Source from the content-addressed store, hash-verified

92class Peer {
93
94 constructor(serverConnection, peerId) {
95 this._server = serverConnection;
96 this._peerId = peerId;
97 this._filesQueue = [];
98 this._busy = false;
99 }
100
101 sendJSON(message) {
102 this._send(JSON.stringify(message));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected