MCPcopy
hub / github.com/mailvelope/mailvelope / createPeer

Method createPeer

src/controller/sub.controller.js:71–79  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

69 }
70
71 async createPeer(type) {
72 if (this.peers[type]) {
73 return;
74 }
75 this.peers[type] = createPeerController(type);
76 this.peers[type].peers[this.peerType] = this;
77 await controllerPool.updateSession(this.id, this);
78 await controllerPool.set(this.peers[type].id, this.peers[type]);
79 }
80
81 async removePeer(type) {
82 if (!this.peers[type]) {

Callers 3

setupEditorControllerFunction · 0.80
onOpenEditorMethod · 0.80

Calls 3

createPeerControllerFunction · 0.90
updateSessionMethod · 0.80
setMethod · 0.45

Tested by 1

setupEditorControllerFunction · 0.64