How to implement automatic reconnection for WebSocket? #3895
Unanswered
callmeitachi
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think your problem with unwrap here... let mut ws=WebSocket::open("ws://192.168.1.5:8080/wswsws").unwrap(); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Below is my WebSocket reconnection code implemented with a loop.
Is this approach suboptimal? Are there alternative methods?:
}
Beta Was this translation helpful? Give feedback.
All reactions