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

set ws readyState if closed before connection could be established #3701

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

KhafraDev
Copy link
Member

#3697 (comment)

A websocket connection is closed in two ways: 1) when the socket closes, or 2) if a connection could not be established. We were only setting the readyState in the first case.

@KhafraDev KhafraDev merged commit 1e32c06 into nodejs:main Oct 8, 2024
33 checks passed
@KhafraDev KhafraDev deleted the close-before-connection-readystat branch October 8, 2024 16:23
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 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.

2 participants