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): Create only one WebSocketServer instead of per websocket request #539

Merged
merged 1 commit into from
May 26, 2024

Conversation

mikestopcontinues
Copy link
Contributor

Currently, a new WebSocketServer is opened per websocket request. This PR reuses a single server for all requests.

Copy link

changeset-bot bot commented May 23, 2024

🦋 Changeset detected

Latest commit: 8385662

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 Patch

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

@yusukebe
Copy link
Member

@mikestopcontinues Thanks!

@nakasyou Could you review this one?

Copy link
Contributor

@nakasyou nakasyou left a comment

Choose a reason for hiding this comment

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

I think it looks good.
It may speed up.

@yusukebe
Copy link
Member

@mikestopcontinues @nakasyou Thanks. I'll merge this now.

@yusukebe yusukebe changed the title Create only one WebSocketServer instead of per websocket request fix(node-ws): Create only one WebSocketServer instead of per websocket request May 26, 2024
@yusukebe yusukebe merged commit ec6ec4e into honojs:main May 26, 2024
1 check passed
@github-actions github-actions bot mentioned this pull request May 26, 2024
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.

None yet

3 participants