Handle connecting directly to the event stream URL

This commit is contained in:
Samuel Elliott
2022-11-16 12:13:48 +00:00
parent a52c45af36
commit 20bab43981
5 changed files with 30 additions and 2 deletions

View File

@@ -34,5 +34,5 @@ export function timeoutSignal(ms = 60 * 1000) {
controller.abort(new Error('Timeout'));
}, ms);
return [controller.signal, () => clearTimeout(timeout)] as const;
return [controller.signal, () => clearTimeout(timeout), controller] as const;
}