From d023cce039be1aa28e5c3909b977d1ed065971df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Sat, 10 Jan 2026 12:03:48 +0100 Subject: [PATCH] fix: automatically reconnect after losing a WebSocket connection --- src/hooks/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/mod.rs b/src/hooks/mod.rs index 89e3355..522bf86 100644 --- a/src/hooks/mod.rs +++ b/src/hooks/mod.rs @@ -40,7 +40,7 @@ where future() }); - let mut socket = use_websocket(|| subscribe_to_updates(WebSocketOptions::default())); + let mut socket = use_websocket(|| subscribe_to_updates(WebSocketOptions::new().with_automatic_reconnect())); use_future(move || async move { while socket.recv().await.is_ok() { refresh_tick += 1;