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

fix(ClientRequest): passthrough Upgrade requests correctly #683

Merged
merged 5 commits into from
Dec 2, 2024

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Nov 29, 2024

Reproduce the issue

pnpm test:node test/modules/http/compliance/http-upgrade.test.ts

Comment/uncomment the interceptor.apply() step to toggle between passing/failing scenarios.

Changes

  • MockHttpSocket will now forward writes to the original Socket in the passthrough mode.

@kettanaito kettanaito changed the title test: add failing test fix(ClientRequest): passthrough Upgrade requests correctly Nov 29, 2024
@kettanaito kettanaito marked this pull request as ready for review December 2, 2024 17:54
@kettanaito kettanaito merged commit cd32d01 into main Dec 2, 2024
2 checks passed
@kettanaito kettanaito deleted the fix/socketio-upgrade branch December 2, 2024 18:33
@kettanaito
Copy link
Member Author

Released: v0.37.3 🎉

This has been released in v0.37.3!

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.

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.

Support Upgrade requests (Socket.IO)
1 participant