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

fix(websocket): add missing close events and remove extra error event #7606

Merged
merged 2 commits into from
Sep 29, 2020

Conversation

crowlKats
Copy link
Member

Fixes #7604

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

@crowlKats thanks, could you add a test case exercising this change?

@crowlKats
Copy link
Member Author

@bartlomieju not really, as the errors that would cause these events are unexpected errors from either the client or the server.

@ry
Copy link
Member

ry commented Sep 21, 2020

@crowlKats what about a test that counts the number of events? Wouldn't that be a sufficient test?

@crowlKats
Copy link
Member Author

@ry well we would need to somehow force an unexpected error to happen to test anything of the sort

@bartlomieju bartlomieju changed the title Websocket add missing close events and remove extra error event fix(websocket): add missing close events and remove extra error event Sep 25, 2020
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.

WebSocket don't call close event when error occurs
3 participants