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

Method constructor

src/controller/main.controller.js:21–27  ·  view source on GitHub ↗
(port, addPortSequence)

Source from the content-addressed store, hash-verified

19
20class EventCache {
21 constructor(port, addPortSequence) {
22 this.port = port;
23 this.addPortSequence = addPortSequence;
24 this.cache = [];
25 this.push = this.push.bind(this);
26 this.port.onMessage.addListener(this.push);
27 }
28
29 push(event) {
30 this.cache.push(event);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected