Refresh Fleet with discovery, operation progress, and lobby watches
This commit is contained in:
@@ -39,6 +39,7 @@ export interface ServerStatus {
|
||||
}
|
||||
|
||||
export const statusByServer = writable<Map<string, ServerStatus>>(new Map());
|
||||
export const statusReceivedAt = writable(0);
|
||||
|
||||
// Shared 1s ticker for elapsed-time displays. One interval feeds every card
|
||||
// on the page instead of N per-card timers. Timer starts on the first
|
||||
@@ -67,6 +68,7 @@ export function startServerStream(): void {
|
||||
for (const e of data.entries) m.set(e.server, e);
|
||||
return m;
|
||||
});
|
||||
statusReceivedAt.set(Date.now());
|
||||
});
|
||||
if (tickInterval === null) {
|
||||
tickInterval = setInterval(() => _uiNow.set(Date.now()), 1000);
|
||||
|
||||
Reference in New Issue
Block a user