Skip to content

socketio client throws ConnectionError when can't connect to server (timeout or no route to host) instead of continuously trying to reconnect #871

Answered by miguelgrinberg
dblitt asked this question in Q&A
Discussion options

You must be logged in to vote

The Socket.IO client does not retry the initial connection attempt. There is reconnection support, but that kicks in when a previously established connection is lost. For an initial connection, you can build a retry loop on your side.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dblitt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants