Improve SSE status and event auth handling

This commit is contained in:
Brandon Zhang
2026-03-27 17:55:28 +08:00
parent f437f6939c
commit 65b29bcf03
6 changed files with 77 additions and 22 deletions

View File

@@ -9,6 +9,7 @@ const _state = {
status: null, // StatusResponse | null
config: null, // ConfigResponse | null
serverOnline: false,
sseReconnecting: false,
};
const _listeners = {}; // key -> Set<fn>