Skip to content

engine.io-client instantly permanently attempt to reconnect? #3995

Answered by darrachequesne
tgbv asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! By default, the Socket.IO client will try to reconnect forever. Available options:

  • reconnection (defaults to true)
  • reconnectionAttempts (defaults to Infinity)
  • reconnectionDelay (defaults to 1000)
  • reconnectionDelayMax (defaults to 5000)
  • randomizationFactor (defaults to 0.5)

Documentation: https://socket.io/docs/v4/client-initialization/#reconnection

engine.io-client instantly permanently attempt to reconnect?

The Engine.IO client will not try to reconnect. It behaves like a classic WebSocket client, which means you'll have to manually reconnect. The reconnection is a feature of the Socket.IO client above.

I have a WS server

Please note the neither the Engine.IO client nor the Soc…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by darrachequesne
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