From 539c2f25bb4f3a3fff8f4f3a976413e8943824e3 Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Tue, 1 Sep 2026 09:37:46 -0400 Subject: [PATCH] The reports ledger loads on connect, not into a closed socket The first refreshFeedback fired while the websocket was still connecting and pre-open sends drop silently; the games list survives because onopen re-asks. Feedback now re-asks there too, and rides the 45-second poll so replies land while the lobby sits open. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_015RCWSTnb1KYTPyL4GmhGnF --- packages/web/src/net.svelte.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web/src/net.svelte.ts b/packages/web/src/net.svelte.ts index 9ab5472..42cfd8a 100644 --- a/packages/web/src/net.svelte.ts +++ b/packages/web/src/net.svelte.ts @@ -374,6 +374,7 @@ class Net { } } this.refreshGames(); + this.refreshFeedback(); }; ws.onclose = () => { this.status = "disconnected"; @@ -678,7 +679,7 @@ class Net { if (this.pollTimer) return; this.refreshGames(); this.refreshFeedback(); - this.pollTimer = setInterval(() => this.refreshGames(), 45_000); + this.pollTimer = setInterval(() => { this.refreshGames(); this.refreshFeedback(); }, 45_000); } stopGamePolling(): void { if (this.pollTimer) { clearInterval(this.pollTimer); this.pollTimer = null; }