-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Android] Check that WS connection is open before closing it on failed. Fixes #3346 #3347
Conversation
@mkonicek Can we merge this? Sorry for the issue, I didn't test properly after the review. |
@facebook-github-bot shipit Thanks for the fix @yzarubin! |
Should this check go in _closeWebSocket? Opened #3364 so we look into this later after cutting 0.13 with the fix in this PR. |
@satya164 Thanks for the Android WS implementation! |
@ide, @yzarubin It might be easier to maintain the state in native but don't think iOS does that so we're good for now. It would be amazing if someone could add a cross-platform example to the iOS and Android UI Explorer so we can at least play with the implementation and see it works :) I'll request rigorous test plans and examples on complex PRs in the future. |
@facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/1654193344827885/int_phab to review. |
45644aa
…acebook#3346 Summary: Check that the WS state is set to OPEN before trying to close it when the ```websocketFailed``` event fires. Otherwise the app throws an error at the Android level. Fixes facebook#3346 Closes facebook#3347 Reviewed By: @svcscm Differential Revision: D2535807 Pulled By: @mkonicek fb-gh-sync-id: bb70c551ea2e582cfaa80139a265dbbca6d990d2
…acebook#3346 Summary: Check that the WS state is set to OPEN before trying to close it when the ```websocketFailed``` event fires. Otherwise the app throws an error at the Android level. Fixes facebook#3346 Closes facebook#3347 Reviewed By: @svcscm Differential Revision: D2535807 Pulled By: @mkonicek fb-gh-sync-id: bb70c551ea2e582cfaa80139a265dbbca6d990d2
…acebook#3346 Summary: Check that the WS state is set to OPEN before trying to close it when the ```websocketFailed``` event fires. Otherwise the app throws an error at the Android level. Fixes facebook#3346 Closes facebook#3347 Reviewed By: @svcscm Differential Revision: D2535807 Pulled By: @mkonicek fb-gh-sync-id: bb70c551ea2e582cfaa80139a265dbbca6d990d2
Check that the WS state is set to OPEN before trying to close it when the
websocketFailed
event fires. Otherwise the app throws an error at the Android level.Fixes #3346