MCPcopy Index your code
hub / github.com/nukeop/nuclear / emit

Method emit

packages/player/src/test/mocks/eventSource.ts:54–56  ·  view source on GitHub ↗
(type: string, event: Event)

Source from the content-addressed store, hash-verified

52 }
53
54 private emit(type: string, event: Event) {
55 (this.listeners.get(type) ?? []).forEach((listener) => listener(event));
56 }
57}

Callers 5

simulateOpenMethod · 0.95
simulateErrorMethod · 0.95
simulateEventMethod · 0.95
SoundProviderFunction · 0.80
eventBus.test.tsFile · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected