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(node-ws): ws wasn't created when upgrade process is async #959

Merged
merged 4 commits into from
Feb 10, 2025

Conversation

nakasyou
Copy link
Contributor

@nakasyou nakasyou commented Feb 5, 2025

Fixes #954

The author should do the following, if applicable

  • Add tests
  • Run tests
  • yarn changeset at the top of this repo and push the changeset
  • Follow the contribution guide

@yusukebe
Copy link
Member

yusukebe commented Feb 6, 2025

Hi @nakasyou

Thank you for the PR. I tried it and can confirm the problem was solved with this fix. But can you add a test?

Copy link

changeset-bot bot commented Feb 8, 2025

🦋 Changeset detected

Latest commit: 52859de

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/node-ws Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nakasyou
Copy link
Contributor Author

nakasyou commented Feb 8, 2025

Hi @yusukebe

I've just added a test for the problem, so could you check it?

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Member

yusukebe commented Feb 9, 2025

Hi @nakasyou ! Thank you so much. Looks good. But please update the changeset.

@nakasyou
Copy link
Contributor Author

nakasyou commented Feb 9, 2025

@yusukebe I fixed it! Can you let me see this merged?

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Member

@nakasyou Thank you!

@yusukebe yusukebe merged commit c24efa6 into honojs:main Feb 10, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Feb 10, 2025
@nakasyou nakasyou deleted the fix/ws-async branch February 10, 2025 11:24
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.

Awaiting in the upgradeWebSocket callback prevents the websocket events from being registered correctly
2 participants