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 close event code for BadGateway #512

Merged
merged 5 commits into from
Oct 19, 2023

Conversation

thumbsupep
Copy link
Contributor

@thumbsupep thumbsupep commented Oct 11, 2023

This corrects the close event code for BadGateway from 1013 to 1014 https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code#value

This error is considered non fatal and users should be able to retry.

relates to #510

Copy link
Owner

@enisdenjo enisdenjo left a comment

Choose a reason for hiding this comment

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

A few remarks, otherwise looks good!

src/common.ts Outdated Show resolved Hide resolved
src/__tests__/client.ts Outdated Show resolved Hide resolved
thumbsupep and others added 3 commits October 18, 2023 13:45
Co-authored-by: Denis Badurina <badurinadenis@gmail.com>
Co-authored-by: Denis Badurina <badurinadenis@gmail.com>
@enisdenjo enisdenjo merged commit 0438650 into enisdenjo:master Oct 19, 2023
12 checks passed
@thumbsupep thumbsupep deleted the fix-error-code branch October 20, 2023 04:20
enisdenjo pushed a commit that referenced this pull request Oct 23, 2023
## [5.14.2](v5.14.1...v5.14.2) (2023-10-23)

### Bug Fixes

* **client:** correct close code for Bad Gateway reason ([#512](#512)) ([0438650](0438650))
@enisdenjo
Copy link
Owner

🎉 This PR is included in version 5.14.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants