Skip to content

fix(websocket): correct argument order in WebSocketStream UTF-8 failure#5050

Merged
mcollina merged 1 commit intonodejs:mainfrom
deepview-autofix:deepview/e4c364751a
Apr 17, 2026
Merged

fix(websocket): correct argument order in WebSocketStream UTF-8 failure#5050
mcollina merged 1 commit intonodejs:mainfrom
deepview-autofix:deepview/e4c364751a

Conversation

@deepview-autofix
Copy link
Copy Markdown
Contributor

When a text frame with invalid UTF-8 was received, failWebsocketConnection was called with the reason string in the code position, causing the close frame to be sent with code 0 (NaN coerced from string) instead of 1007.

When a text frame with invalid UTF-8 was received, failWebsocketConnection
was called with the reason string in the code position, causing the close
frame to be sent with code 0 (NaN coerced from string) instead of 1007.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: DeepView Autofix <276251120+deepview-autofix@users.noreply.github.com>
Co-Authored-By: Nikita Skovoroda <chalkerx@gmail.com>
Signed-off-by: Nikita Skovoroda <chalkerx@gmail.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.05%. Comparing base (d2e8178) to head (bac78d8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5050      +/-   ##
==========================================
+ Coverage   93.03%   93.05%   +0.02%     
==========================================
  Files         110      110              
  Lines       35793    35793              
==========================================
+ Hits        33299    33308       +9     
+ Misses       2494     2485       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 759602e into nodejs:main Apr 17, 2026
36 checks passed
mcollina pushed a commit that referenced this pull request Apr 29, 2026
@github-actions github-actions Bot mentioned this pull request May 1, 2026
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.

4 participants