diff --git a/src/hooks/mod.rs b/src/hooks/mod.rs index 89e3355..81a2bc3 100644 --- a/src/hooks/mod.rs +++ b/src/hooks/mod.rs @@ -40,7 +40,8 @@ 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;