-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hamed/refactor_ws_in_deriv_api #270
base: flutter-version-3
Are you sure you want to change the base?
hamed/refactor_ws_in_deriv_api #270
Conversation
|
As you said if I want to summarize the benefits here they are:
|
hamed/refactor_ws_in_deriv_api
178b471
to
0119c7e
Compare
_webSocketChannel = ws.WebSocket( | ||
uri, | ||
pingInterval: const Duration(seconds: 1), | ||
backoff: const ws.ConstantBackoff(Duration(seconds: 1)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about LinearBackoff ? Is it supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are looking for a way to connect asap, so I suppose ConstantBackoff
is better in our case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ws.BinaryExponentialBackoff
is the one should be used to avoid flooding the server.
device_info_plus: ^8.1.0 | ||
package_info_plus: ^3.0.3 | ||
connectivity_plus: ^3.0.3 | ||
web_socket_client: ^0.1.0-dev.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't use any dev
packages. Especially with open bugs like this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abedelaziz-deriv this is just a POC.
No description provided.