Skip to content

fix: handle invalid websocket JSON#874

Open
belfzclaw wants to merge 1 commit intoopen-rpc:masterfrom
belfzclaw:fix/websocket-parse-error
Open

fix: handle invalid websocket JSON#874
belfzclaw wants to merge 1 commit intoopen-rpc:masterfrom
belfzclaw:fix/websocket-parse-error

Conversation

@belfzclaw
Copy link

Summary\n- catch JSON.parse failures in the ws transport and reply with a JSON-RPC -32700 error\n- add regression test to ensure a bad frame doesn't crash the server\n\nFixes #748

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.97%. Comparing base (8531407) to head (91e776e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #874      +/-   ##
==========================================
+ Coverage   98.96%   98.97%   +0.01%     
==========================================
  Files           9        9              
  Lines         289      292       +3     
  Branches       43       44       +1     
==========================================
+ Hits          286      289       +3     
  Misses          3        3              

☔ 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.

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.

1 participant