MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / emit

Function emit

packages/kaos/test/ssh-process.test.ts:55–61  ·  view source on GitHub ↗
(event: string, ...args: unknown[])

Source from the content-addressed store, hash-verified

53 });
54
55 function emit(event: string, ...args: unknown[]): void {
56 const arr = listeners.get(event);
57 if (!arr) return;
58 for (const cb of arr) {
59 cb(...args);
60 }
61 }
62
63 return {
64 channel,

Callers 1

createFakeChannelFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected