feat(app): project current server state (#38459)

This commit is contained in:
Brendan Allan
2026-07-24 10:49:16 +08:00
committed by GitHub
parent 80e1563abe
commit 6faadb332c
38 changed files with 2923 additions and 478 deletions
@@ -105,5 +105,9 @@ function json(route: Route, body: unknown, status = 200) {
}
function sse(route: Route) {
return route.fulfill({ status: 200, contentType: "text/event-stream", body: ": ok\n\n" })
return route.fulfill({
status: 200,
contentType: "text/event-stream",
body: `data: ${JSON.stringify({ payload: { id: "evt_mock_connected", type: "server.connected", properties: {} } })}\n\n`,
})
}