MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / addPort

Function addPort

src/controller/main.controller.js:77–81  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

75const controllerTransaction = new ControllerTransaction();
76
77async function addPort(port) {
78 const eventCache = new EventCache(port, addPortQueue);
79 await modelInitialized;
80 addPortQueue.push(controllerTransaction, 'addPort', [port, eventCache]);
81}
82
83async function removePort(port) {
84 const id = parseViewName(port.name).id;

Callers 1

initControllerFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected