core: fix server response handling to prevent connection timeouts

This commit is contained in:
Dax Raad 2025-12-15 15:06:20 -05:00
parent 9c5f94bd66
commit d5a506d4ae

View file

@ -125,6 +125,12 @@ export namespace Server {
async (c) => {
log.info("global event connected")
return streamSSE(c, async (stream) => {
stream.writeSSE({
data: JSON.stringify({
type: "server.connected",
properties: {},
}),
})
async function handler(event: any) {
await stream.writeSSE({
data: JSON.stringify(event),