Skip to content

fix(WebSocket): resolve relative connection urls#763

Merged
kettanaito merged 3 commits intomainfrom
fix/ws-relative-url
Feb 6, 2026
Merged

fix(WebSocket): resolve relative connection urls#763
kettanaito merged 3 commits intomainfrom
fix/ws-relative-url

Conversation

@kettanaito
Copy link
Member

Noticed we were not following the WebSocket constructor spec and did not resolve relative connection URLs if run in the browser context. There was also no protocol replacement logic either.

@kettanaito
Copy link
Member Author

The nock compatibility test suite must be suffering from some caching since locally compat tests pass:

  634 passing (9s)
  11 pending

Or it might be mistakingly running on Node.js v24, which we don't currently support.

@kettanaito kettanaito merged commit 46faa37 into main Feb 6, 2026
2 of 3 checks passed
@kettanaito kettanaito deleted the fix/ws-relative-url branch February 6, 2026 13:45
@kettanaito
Copy link
Member Author

Released: v0.41.1 🎉

This has been released in v0.41.1.

Get these changes by running the following command:

npm i @mswjs/interceptors@latest

Predictable release automation by Release.

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