(obj: JsonRpc | string)
| 332 | }; |
| 333 | |
| 334 | const writeClient = (obj: JsonRpc | string): void => { |
| 335 | try { process.stdout.write((typeof obj === 'string' ? obj : JSON.stringify(obj)) + '\n'); } catch { /* host gone */ } |
| 336 | }; |
| 337 | const shutdown = (): void => { |
| 338 | if (shuttingDown) return; shuttingDown = true; |
| 339 | try { livenessWatchdog?.stop(); } catch { /* ignore */ } |
no test coverage detected