MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / emit

Function emit

src/lib/auth.js:35–39  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

33const loginEvents = {
34 listeners: new Set(),
35 emit(data) {
36 for (const listener of this.listeners) {
37 listener(data);
38 }
39 },
40 addListener(callback) {
41 this.listeners.add(callback);
42 },

Callers 1

editorFile.jsFile · 0.70

Calls 1

listenerFunction · 0.85

Tested by

no test coverage detected