MCPcopy
hub / github.com/AutoMaker-Org/automaker / emit

Function emit

apps/server/src/lib/events.ts:22–30  ·  view source on GitHub ↗
(type: EventType, payload: unknown)

Source from the content-addressed store, hash-verified

20
21 return {
22 emit(type: EventType, payload: unknown) {
23 for (const callback of subscribers) {
24 try {
25 callback(type, payload);
26 } catch (error) {
27 logger.error('Error in event subscriber:', error);
28 }
29 }
30 },
31
32 subscribe(callback: EventCallback) {
33 subscribers.add(callback);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected