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

Use ws WebSocket when options are provided #2968

Open
wants to merge 4 commits into
base: 3.7-dev
Choose a base branch
from

Conversation

KyleBoyer
Copy link
Contributor

The current 3.7-dev implementation does not pass headers to the WebSocket when utilizing the globalThis.WebSocket. This causes issues when initially upgrading to this version of gremlin (or upgrading to Node 22 when the global WebSocket class was enabled by default). This PR ensures that we use the ws WebSocket implementation if ws specific options are passed along.

@KyleBoyer KyleBoyer changed the base branch from master to 3.7-dev January 10, 2025 05:42
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.41%. Comparing base (9b46b67) to head (f3c7dbd).
Report is 290 commits behind head on 3.7-dev.

Additional details and impacted files
@@              Coverage Diff              @@
##             3.7-dev    #2968      +/-   ##
=============================================
+ Coverage      76.14%   76.41%   +0.26%     
- Complexity     13152    13243      +91     
=============================================
  Files           1084     1061      -23     
  Lines          65160    61574    -3586     
  Branches        7285     7341      +56     
=============================================
- Hits           49616    47051    -2565     
+ Misses         12839    12002     -837     
+ Partials        2705     2521     -184     

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

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