fix: improve Reverb WebSocket connect and reconnect handling

Avoid premature polling fallback while Pusher is connecting, schedule
reconnect after disconnect, and disable Pusher stats for Reverb.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-30 09:52:42 +08:00
parent 4fc2b38a40
commit 9f43d07778
2 changed files with 63 additions and 16 deletions

View File

@@ -43,7 +43,8 @@ export function getLotteryEcho(): Echo<"reverb"> | null {
wsPort: port,
wssPort: port,
forceTLS,
enabledTransports: forceTLS ? ["wss"] : ["ws"],
enabledTransports: forceTLS ? ["ws", "wss"] : ["ws"],
disableStats: true,
});
}