This commit is contained in:
Dax Raad
2025-05-19 16:07:01 -04:00
parent 652429377b
commit fa8a46326a
5 changed files with 14 additions and 13 deletions

View File

@@ -32,6 +32,9 @@ export namespace Server {
.get("/event", async (c) => {
log.info("event connected");
return streamSSE(c, async (stream) => {
stream.writeSSE({
data: JSON.stringify({}),
});
const unsub = Bus.subscribeAll(async (event) => {
await stream.writeSSE({
data: JSON.stringify(event),