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

Method handleDisconnect

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

Source from the content-addressed store, hash-verified

79 }
80
81 handleDisconnect() {
82 this.clearPort();
83 this.#reply?.forEach(({reject}) => reject({message: 'The Mailvelope service worker was shutdown after 30s of inactivity. Please try again.', code: 'INTERNAL_ERROR'}));
84 this.#reply = null;
85 this.#replyCount = 0;
86 }
87
88 clearPort() {
89 this._port = null;

Callers 1

initPortMethod · 0.95

Calls 1

clearPortMethod · 0.95

Tested by

no test coverage detected