Skip to content
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

Open
wants to merge 3 commits into
base: flutter-version-3
Choose a base branch
from

Conversation

hamed-rezaee
Copy link
Contributor

No description provided.

'$uri',
pingInterval: _websocketConnectTimeOut,
);
_webSocket = ws.WebSocket(uri);
Copy link
Contributor

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?

Copy link
Contributor Author

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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants