Closed kettanaito closed 4 days ago
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.
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 stillCONNECTING
at the point, the message will be lost.Changes
client.send()
schedules data send for once the connection is open if it's not yet.client.send()
does nothing if the connection isCLOSING
orCLOSED
.