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

[node-ws] Pass the original close code (currently, it's always 0) #1012

Open
moroshko opened this issue Mar 12, 2025 · 0 comments
Open

[node-ws] Pass the original close code (currently, it's always 0) #1012

moroshko opened this issue Mar 12, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@moroshko
Copy link

Which middleware is the feature for?

node-ws

What is the feature you are proposing?

Currently, it looks like when the CloseEvent is created, the close code is not specified, resulting is event.code always being 0:

onClose(event) {
  console.log("Close code", event.code); // always 0
}

Can we pass the original close code to onClose()?

@moroshko moroshko added the enhancement New feature or request label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant