improvements to store
This commit is contained in:
1 parent
b2ec264ede
commit
336a4e821e
1 file changed
+2
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user