-
Notifications
You must be signed in to change notification settings - Fork 40
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_connection_cubit #276
base: flutter-version-3
Are you sure you want to change the base?
hamed/refactor_connection_cubit #276
Conversation
'$uri', | ||
pingInterval: _websocketConnectTimeOut, | ||
); | ||
_webSocket = ws.WebSocket(uri); |
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.
A quick question. Why is pingInterval
changed from 10s to 1s? Isn't 1s too short?
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.
the main reason behind decreasing the ping interval is to find out the device disconnection as soon as disconnection happened because we are only relying on this ping to update the connection status.
@@ -41,5 +41,9 @@ | |||
</array> | |||
<key>UIViewControllerBasedStatusBarAppearance</key> | |||
<false/> | |||
<key>CADisableMinimumFrameDurationOnPhone</key> |
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.
do we need this?
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.
this has been added automatically to Info.plist
after the build and I suppose it is because of MinimumOSVersion 11
.
No description provided.