feat(app): project current server state (#38459)
This commit is contained in:
@@ -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`,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user