MCPcopy Index your code
hub / github.com/vercel/hyper / emit

Method emit

lib/utils/rpc.ts:42–47  ·  view source on GitHub ↗
(ev: string, data: any)

Source from the content-addressed store, hash-verified

40 }
41
42 emit(ev: string, data: any) {
43 if (!this.id) {
44 throw new Error('Not ready');
45 }
46 this.ipc.send(this.id, {ev, data});
47 }
48
49 removeListener(ev: string, fn: (...args: any[]) => void) {
50 this.emitter.removeListener(ev, fn);

Callers 11

initFunction · 0.45
effectFunction · 0.45
effectFunction · 0.45
requestSessionFunction · 0.45
effectFunction · 0.45
requestSplitFunction · 0.45
requestTermGroupFunction · 0.45
installUpdateFunction · 0.45
reportRendererMethod · 0.45
constructorMethod · 0.45
ClientClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected