MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / _onPeerDCIncomingConnection

Function _onPeerDCIncomingConnection

app/controllers/index.js:93–99  ·  view source on GitHub ↗
(event, data)

Source from the content-addressed store, hash-verified

91 },
92
93 _onPeerDCIncomingConnection(event, data) {
94 const { connection } = data;
95 const peers = this.model;
96 const peer = peers.findBy('peer.id', connection.peer);
97
98 peer.set('peer.state', 'connected');
99 },
100
101 _onPeerDCIncomingConnectionError(event, data) {
102 const { connection, error } = data;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected