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

[WIP] Improve presentation of connection status #6

Closed

Conversation

artur-ios-dev
Copy link
Contributor

@artur-ios-dev artur-ios-dev commented Jun 17, 2019

New status 'CLOSING' used while the channel is being closed and set status CONNECTED once the connection has been established.

Also, this PR adds a possibility to set a timeout for the connection.

Closes #3

CAUTION: I have marked is as WIP since it requires dart-lang/web_socket_channel#85 to be merged. Not sure if it ever happens (web_socket_channel kinda seems to be abandoned) so changed a dependency to point on my forked repo and branch with the fix.

Btw. Maybe it will be better to add a status TIMEOUT for some cases? Anyway, it's something to consider on another PR.

…or connections

New status 'CLOSING' used while channel is being closed and set status CONNECTED once the connection has been established.
@artur-ios-dev artur-ios-dev changed the title [WIP] Improve presentation of connection status and add an option timeout f… [WIP] Improve presentation of connection status Jun 17, 2019
@Jaribeau
Copy link

Thanks for working on this @artrmz - I was just running into the same problem and was almost at the point of making some changes on here and potentially websocket, so nice to see you did that already.

@artur-ios-dev
Copy link
Contributor Author

@Jaribeau You are welcome! I am glad someone found it useful as well. Hoepfully dart-lang/web_socket_channel#85 will be merged soon so can finish it up.

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.

Incorrect status when network is unreachable
2 participants