(sessionId: string, terminalId: string)
| 233 | } |
| 234 | |
| 235 | terminalClose(sessionId: string, terminalId: string): void { |
| 236 | this.terminalAttachments.delete(terminalKey(sessionId, terminalId)); |
| 237 | if (!this.connected || !this.ws) return; |
| 238 | this.send({ |
| 239 | type: 'terminal_close', |
| 240 | id: this.nextId(), |
| 241 | payload: { session_id: sessionId, terminal_id: terminalId }, |
| 242 | }); |
| 243 | } |
| 244 | |
| 245 | /** Close the socket. Stops reconnect attempts. */ |
| 246 | close(): void { |
nothing calls this directly
no test coverage detected