improvements to store

This commit is contained in:
grove5_admin committed 2026-05-01 15:07:47 -07:00
1 parent b2ec264ede
commit 336a4e821e
1 file changed
+2 -5
+2 -5
View File
@@ -284,11 +284,8 @@ function createStore() {
// live WebSocket, otherwise it spins up the mock ticker.
function startMockWs() {
if (WS_URL) {
// Real daemon available. Backfill history per-chamber on boot so
// the UI isn't showing zeros until the next live payload. The WS
// onopen handler also calls loadHistory for reconnect resyncs.
loadHistory('colonization', 24);
loadHistory('fruiting', 24);
// Real daemon available — connect and let ws.onopen handle the
// initial history backfill (and any reconnect resyncs).
connectWs();
return;
}