Un-pause the PTY read stream if backpressure paused it. Safe to call when * already running. Keeping the `paused` flag and the term stream in lockstep * is the whole point — clearing one without the other deadlocks the PTY.
()
| 485 | * already running. Keeping the `paused` flag and the term stream in lockstep |
| 486 | * is the whole point — clearing one without the other deadlocks the PTY. */ |
| 487 | private resumePty(): void { |
| 488 | if (!this.paused) return; |
| 489 | this.paused = false; |
| 490 | try { |
| 491 | this.term.resume(); |
| 492 | } catch { |
| 493 | // PTY may be dying; ignore. |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | private onWsMessage(ws: WebSocket, raw: unknown, isBinary: boolean): void { |
| 498 | if (this.disposed) return; |