(obj: OkResponse | ErrResponse)
| 54 | } |
| 55 | |
| 56 | function write(obj: OkResponse | ErrResponse): void { |
| 57 | process.stdout.write(JSON.stringify(obj) + "\n"); |
| 58 | } |
| 59 | |
| 60 | async function handle(req: Request): Promise<void> { |
| 61 | if (!req || typeof req.id !== "string") { |