fix(webui): move the live stream to /api/stream so reloading /events serves the page
This commit is contained in:
1 parent
9de96c1d42
commit
36e69724a4
10 files changed
+43
-19
No files matched your search
+1
-1
@@ -217,7 +217,7 @@ export function subscribeEvents(
|
||||
onEvent: (event: unknown) => void,
|
||||
onStateChange?: (state: StreamState) => void,
|
||||
): () => void {
|
||||
const src = new EventSource("/events");
|
||||
const src = new EventSource("/api/stream");
|
||||
src.onopen = () => onStateChange?.("live");
|
||||
src.onerror = () => onStateChange?.("reconnecting");
|
||||
src.onmessage = (e) => {
|
||||
|
||||
Reference in new issue
Block a user