Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: How should I handle websocket_client reconnects?

$
0
0
Hi DesktopMan,

Our websocket client doesn't allow reconnecting by calling the connect function again. You can simply create a new websocket client object instance and then call connect.

Also FYI it probably is dangerous to endlessly loop if an exception occurs trying to reconnect again. You probably only will want to try a couple of times and potentially not depending on the error.

Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>