isFatalConnectionProblem property
Check if the close event or connection error is fatal. If you return true
,
the client will fail immediately without additional retries; however, if you
return false
, the client will keep retrying until the retryAttempts
have
been exceeded.
The argument is either a WebSocket CloseEvent
or an error thrown during
the connection phase.
Beware, the library classifies a few close events as fatal regardless of
what is returned. They are listed in the documentation of the retryAttempts
option.
@default isFatalConnectionProblemDefault Non close events
Implementation
final bool Function(Object errOrCloseEvent) isFatalConnectionProblem;