hamed/refactor_ws_in_deriv_api#270
hamed/refactor_ws_in_deriv_api#270hamed-rezaee wants to merge 1 commit intoderiv-com:flutter-version-3from
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.
What about LinearBackoff ? Is it supported?
There was a problem hiding this comment.
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.
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.
I wouldn't use any dev packages. Especially with open bugs like this one.
No description provided.