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

Function _onPeerP2POutgoingConnection

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

Source from the content-addressed store, hash-verified

121 },
122
123 _onPeerP2POutgoingConnection(event, data) {
124 const { connection } = data;
125 const peers = this.model;
126 const peer = peers.findBy('peer.id', connection.peer);
127
128 peer.setProperties({
129 'peer.connection': connection,
130 'peer.state': 'connecting',
131 });
132 },
133
134 _onPeerDCOutgoingConnection(event, data) {
135 const { connection } = data;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected