mswjs / interceptors

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

fix(WebSocket): buffer sending the data until connection is open #678

Closed kettanaito closed 4 days ago

kettanaito commented 4 days ago

When fixing the tests for our Socket.IO bunding, I've discovered that client.send() dispatches the message event on the WebSocket client immediately. If the client connection is still CONNECTING at the point, the message will be lost.

Changes

kettanaito commented 4 days ago

Released: v0.37.1 🎉

This has been released in v0.37.1!

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.