(sessionId: string, terminalId: string, sinceSeq?: number)
| 196 | } |
| 197 | |
| 198 | terminalAttach(sessionId: string, terminalId: string, sinceSeq?: number): void { |
| 199 | const key = terminalKey(sessionId, terminalId); |
| 200 | const previous = this.terminalAttachments.get(key); |
| 201 | const lastSeq = sinceSeq ?? previous?.lastSeq ?? 0; |
| 202 | this.terminalAttachments.set(key, { sessionId, terminalId, lastSeq }); |
| 203 | if (!this.connected || !this.ws) return; |
| 204 | this.sendTerminalAttach(sessionId, terminalId, lastSeq); |
| 205 | } |
| 206 | |
| 207 | terminalInput(sessionId: string, terminalId: string, data: string): void { |
| 208 | if (!this.connected || !this.ws) return; |
nothing calls this directly
no test coverage detected