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

NowNodes fixes #412

Merged
merged 2 commits into from
Aug 29, 2024
Merged

NowNodes fixes #412

merged 2 commits into from
Aug 29, 2024

Conversation

swansontec
Copy link
Contributor

@swansontec swansontec commented Aug 28, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

The socket close event has a useful status code, as defined in rfc6455 section 7.4.1. Include that, as well as improving our error string handling.
@swansontec swansontec force-pushed the william/nownodes-fixes branch from 04a53e6 to 1e17239 Compare August 28, 2024 23:56
: trackedError instanceof Error
? trackedError
: new Error(String(trackedError))
log.warn(`onSocketClose with server ${uri}: ${code} ${errObj.message}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we include reason: string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's blank in practice.

@swansontec swansontec merged commit 4a58791 into master Aug 29, 2024
2 checks passed
@swansontec swansontec deleted the william/nownodes-fixes branch August 29, 2024 17:27
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.

2 participants