* Send a control response back to the session
(response: SDKControlResponse)
| 325 | * Send a control response back to the session |
| 326 | */ |
| 327 | sendControlResponse(response: SDKControlResponse): void { |
| 328 | if (!this.ws || this.state !== 'connected') { |
| 329 | logError(new Error('[SessionsWebSocket] Cannot send: not connected')) |
| 330 | return |
| 331 | } |
| 332 | |
| 333 | logForDebugging('[SessionsWebSocket] Sending control response') |
| 334 | this.ws.send(jsonStringify(response)) |
| 335 | } |
| 336 | |
| 337 | /** |
| 338 | * Send a control request to the session (e.g., interrupt) |
no test coverage detected