()
| 394 | } |
| 395 | |
| 396 | stop(): void { |
| 397 | if (this.stopped) return; |
| 398 | this.stopped = true; |
| 399 | this.rejectPending('Transport stopped'); |
| 400 | if (!this.socket.destroyed) { |
| 401 | this.socket.end(); |
| 402 | this.socket.destroy(); |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | /** |
| 407 | * Write a one-shot line directly to the socket (no JSON-RPC framing applied |