MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / emit

Method emit

src/utils/event-emitter.ts:25–30  ·  view source on GitHub ↗
(eventName: EventType)

Source from the content-addressed store, hash-verified

23 }
24
25 emit(eventName: EventType) {
26 const callbacks = this.events[eventName];
27 if (callbacks) {
28 callbacks.forEach((callback) => callback());
29 }
30 }
31}
32
33const getEventEmitter = () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected