MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / removePort

Method removePort

src/controller/sub.controller.js:59–69  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

57 }
58
59 removePort(port) {
60 const view = parseViewName(port.name);
61 if (view.id !== this.id) {
62 throw new Error('View ID mismatch.');
63 }
64 delete this.ports[view.type];
65 if (view.type === this.mainType) {
66 super.clearPort();
67 }
68 return Object.keys(this.ports).length === 0;
69 }
70
71 async createPeer(type) {
72 if (this.peers[type]) {

Callers 1

removePortFunction · 0.80

Calls 2

parseViewNameFunction · 0.90
clearPortMethod · 0.80

Tested by

no test coverage detected