(id: number | string, result: unknown)
| 92 | }; |
| 93 | |
| 94 | const reply = (id: number | string, result: unknown): void => { |
| 95 | write({ jsonrpc: "2.0", id, result }); |
| 96 | }; |
| 97 | |
| 98 | const replyError = (id: number | string, code: number, message: string): void => { |
| 99 | write({ jsonrpc: "2.0", id, error: { code, message } }); |
no test coverage detected