MCPcopy Index your code
hub / github.com/upstash/jstack / on

Method on

packages/jstack-shared/src/socket.ts:364–366  ·  view source on GitHub ↗
(event: K, callback?: (data: IncomingEvents[K]) => any)

Source from the content-addressed store, hash-verified

362 }
363
364 on<K extends keyof IncomingEvents>(event: K, callback?: (data: IncomingEvents[K]) => any): void {
365 return this.emitter.on(event as string, callback)
366 }
367}

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected