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: only send data if the socket is open #75

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

achingbrain
Copy link
Collaborator

Sometimes the read promise resolves without error, but the socket is in the CLOSING state.

This causes an error to be thrown so only send data if the socket is OPEN - if it's CLOSING treat it as CLOSED and exit the loop.

Fixes this sort of thing:

image

Sometimes the read promise resolves without error, but the socket
is in the `CLOSING` state.

This causes an error to be thrown so only send data if the socket
is `OPEN` - if it's `CLOSING` treat it as `CLOSED` and exit the
loop.
@achingbrain achingbrain merged commit f63265e into master Aug 10, 2023
17 checks passed
@achingbrain achingbrain deleted the fix/only-send-if-socket-open branch August 10, 2023 08:44
github-actions bot pushed a commit that referenced this pull request Aug 10, 2023
## [6.0.2](v6.0.1...v6.0.2) (2023-08-10)

### Bug Fixes

* only send data if the socket is open ([#75](#75)) ([f63265e](f63265e))
@github-actions
Copy link

🎉 This PR is included in version 6.0.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant