@tangle-network/agent-app 0.46.30 → 0.46.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -521,6 +521,11 @@ export interface ChatTurnRoutes {
|
|
|
521
521
|
* running (and buffering) after a client disconnect. */
|
|
522
522
|
turn(request: Request, ctx?: {
|
|
523
523
|
waitUntil?(p: Promise<unknown>): void;
|
|
524
|
+
/**
|
|
525
|
+
* Abort this turn when the caller disconnects. Gateway adapters set this
|
|
526
|
+
* explicitly; browser callers omit it so the durable drain continues.
|
|
527
|
+
*/
|
|
528
|
+
cancelOnDisconnect?: boolean;
|
|
524
529
|
}): Promise<Response>;
|
|
525
530
|
/** GET — replay a buffered turn from `?fromSeq=` (0 = everything), then
|
|
526
531
|
* follow it live until it completes. */
|
package/package.json
CHANGED