MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / #checkConnection

Method #checkConnection

src/lib/EventHandler.js:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 #checkConnection() {
53 if (this._port) {
54 return;
55 }
56 const port = chrome.runtime.connect({name: this.#portName});
57 this.initPort(port);
58 this.triggerConnectListener();
59 }
60
61 handleRuntimeMessage(msg) {
62 switch (msg.event) {

Callers 3

handleRuntimeMessageMethod · 0.95
emitMethod · 0.95
sendMethod · 0.95

Calls 3

initPortMethod · 0.95
connectMethod · 0.45

Tested by

no test coverage detected