codegen
This commit is contained in:
parent
652429377b
commit
fa8a46326a
5 changed files with 14 additions and 13 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue