Compare commits
1 Commits
main
...
791e93f79f
| Author | SHA1 | Date | |
|---|---|---|---|
|
791e93f79f
|
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user