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.
|
// live WebSocket, otherwise it spins up the mock ticker.
|
||||||
function startMockWs() {
|
function startMockWs() {
|
||||||
if (WS_URL) {
|
if (WS_URL) {
|
||||||
// Real daemon available. Backfill history per-chamber on boot so
|
// Real daemon available — connect and let ws.onopen handle the
|
||||||
// the UI isn't showing zeros until the next live payload. The WS
|
// initial history backfill (and any reconnect resyncs).
|
||||||
// onopen handler also calls loadHistory for reconnect resyncs.
|
|
||||||
loadHistory('colonization', 24);
|
|
||||||
loadHistory('fruiting', 24);
|
|
||||||
connectWs();
|
connectWs();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user