* Send a WS abort control message for a prompt. * (The REST :abort endpoint is the primary path; this is the WS path per spec.)
(sessionId: string, promptId: string)
| 187 | * (The REST :abort endpoint is the primary path; this is the WS path per spec.) |
| 188 | */ |
| 189 | abort(sessionId: string, promptId: string): void { |
| 190 | if (!this.connected || !this.ws) return; |
| 191 | this.send({ |
| 192 | type: 'abort', |
| 193 | id: this.nextId(), |
| 194 | payload: { session_id: sessionId, prompt_id: promptId }, |
| 195 | }); |
| 196 | } |
| 197 | |
| 198 | terminalAttach(sessionId: string, terminalId: string, sinceSeq?: number): void { |
| 199 | const key = terminalKey(sessionId, terminalId); |