mswjs / interceptors

Low-level network interception library.
https://npm.im/@mswjs/interceptors
MIT License
539 stars 123 forks source link

fix: set "WebSocket.protocol" to an empty string by default #578

Closed DanielleHuisman closed 3 months ago

DanielleHuisman commented 3 months ago

This issue came up in #577, see that thread for more information.

The WebSocket specification uses an empty string if no protocol is agreed upon, not ws.

kettanaito commented 3 months ago

Also added some integration tests, a bit after the fact: https://github.com/mswjs/interceptors/commit/efac32f59e520a295ff79db8f2e20407756af021

kettanaito commented 3 months ago

Released: v0.30.0 🎉

This has been released in v0.30.0!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.