MCPcopy
hub / github.com/upstash/jstack / on

Method on

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

Source from the content-addressed store, hash-verified

72 }
73
74 on<K extends keyof IncomingEvents>(event: K, callback?: (data: IncomingEvents[K]) => any): void {
75 return this.emitter.on(event as string, callback)
76 }
77
78 emit<K extends keyof OutgoingEvents>(event: K, data: OutgoingEvents[K]): boolean {
79 return this.emitter.emit(event as string, data)

Callers 5

useWebSocketFunction · 0.45
onMethod · 0.45
execWithSpinnerFunction · 0.45
with-postgres.tsFile · 0.45
with-mysql.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected