-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to differentiate connecting and connected states? #1610
Labels
Comments
detailed info about connectionTimeOut in https://github.com/dart-lang/web_socket_channel/issues/22 |
The |
This issue was moved to flutter/flutter#18204 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
First snapshot that StreamBuilder receives is
ConnectionState.waiting
This happens when connecting started and in progress.
after connection is established we do not receive any new snapshots. This is undetermined state.
used this code https://flutter.io/cookbook/networking/web-sockets/
print lines added to track snapshots
in logs you see only
If connection successful - last snapshot is
ConnectionState.waiting
If connection not successful and will die in future (ConnectionTimeout around 2 min) - now you see
ConnectionState.waiting
and can't decide what to do.snapshot will be active only when server sends some data to client.
The text was updated successfully, but these errors were encountered: