Function
setStreamHandler
(command: string, fn: (...args: any[]) => AsyncGenerator<any, void, boolean>)
Source from the content-addressed store, hash-verified
| 221 | callDispatchMap.set(command, fn); |
| 222 | }; |
| 223 | const setStreamHandler = (command: string, fn: (...args: any[]) => AsyncGenerator<any, void, boolean>) => { |
| 224 | streamDispatchMap.set(command, fn); |
| 225 | }; |
| 226 | setCallHandler("eventpublish", async (_client, data: WaveEvent) => { |
| 227 | console.log("[mock eventpublish]", data); |
| 228 | handleWaveEvent(data); |
Tested by
no test coverage detected