Compare commits
1 Commits
791e93f79f
...
415e001076
| Author | SHA1 | Date | |
|---|---|---|---|
|
415e001076
|
@@ -40,7 +40,8 @@ where
|
|||||||
future()
|
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 {
|
use_future(move || async move {
|
||||||
while socket.recv().await.is_ok() {
|
while socket.recv().await.is_ok() {
|
||||||
refresh_tick += 1;
|
refresh_tick += 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user