Skip to content

Unexpected retry behavior #355

Answered by enisdenjo
paymog asked this question in Q&A
Discussion options

You must be logged in to vote

All non-close-event connection problems are considered fatal by default. Your client seems to be throwing undefined, which is not a WebSocket CloseEvent.

If you want the client to retry regardless, you can implement your own shouldRetry option and have it return true always (or with pre v5.8.0 the now deprecated isFatalConnectionProblem option and return false always).

Replies: 1 comment

Comment options

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

This discussion was converted from issue #354 on April 24, 2022 07:29.