This commit is contained in:
yohlo
2025-09-24 11:02:56 -05:00
parent 6760ea46f9
commit 36f3bb77d4
8 changed files with 34 additions and 14 deletions

View File

@@ -47,14 +47,12 @@ export const Route = createFileRoute("/api/events/$")({
"ServerEvents | Closing connection",
context?.userAuthId
);
controller.close();
} catch (e) {
logger.error("ServerEvents | Error closing controller", e);
}
};
request.signal?.addEventListener("abort", cleanup);
return cleanup;
},
});