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

Function _addPeer

app/controllers/index.js:46–55  ·  view source on GitHub ↗
(attrs)

Source from the content-addressed store, hash-verified

44 },
45
46 _addPeer(attrs) {
47 const peerAttrs = attrs.peer;
48
49 // eslint-disable-next-line no-param-reassign
50 delete attrs.peer;
51 const peer = Peer.create(attrs);
52 peer.get('peer').setProperties(peerAttrs);
53
54 this.model.pushObject(peer);
55 },
56
57 _onRoomUserChanged(event, data) {
58 const peers = this.model;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected