MCPcopy Index your code
hub / github.com/coder/coder / emit

Function emit

site/src/utils/reconnectingWebSocket.test.ts:24–28  ·  view source on GitHub ↗

Fire all handlers registered for the given event type.

(event: string)

Source from the content-addressed store, hash-verified

22 close: vi.fn(),
23 /** Fire all handlers registered for the given event type. */
24 emit(event: string) {
25 for (const handler of listeners[event] ?? []) {
26 handler();
27 }
28 },
29 };
30 return socket;
31}

Callers 1

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected