(command: string, fn: (...args: any[]) => Promise<any>)
| 218 | const streamDispatchMap = new Map<string, (...args: any[]) => AsyncGenerator<any, void, boolean>>(); |
| 219 | const secrets = new Map<string, string>(); |
| 220 | const setCallHandler = (command: string, fn: (...args: any[]) => Promise<any>) => { |
| 221 | callDispatchMap.set(command, fn); |
| 222 | }; |
| 223 | const setStreamHandler = (command: string, fn: (...args: any[]) => AsyncGenerator<any, void, boolean>) => { |
| 224 | streamDispatchMap.set(command, fn); |
| 225 | }; |