diff --git a/javascript/standalone/src/client.ts b/javascript/standalone/src/client.ts index 814ca99..88878a3 100644 --- a/javascript/standalone/src/client.ts +++ b/javascript/standalone/src/client.ts @@ -931,6 +931,13 @@ export class RTClient { return undefined; } + async cancelResponse(): Promise { + await this.init(); + await this.client.send({ type: "response.cancel" }); + // Apparently we do not get a response.cancelled message back... + return undefined; + } + async *events(): AsyncIterable { // TODO: Add the updated quota message as a control type of event. try {