Skip to content

Fixed not working websocket proxy (fix: #5280) #5841

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

Closed
wants to merge 2 commits into from
Closed

Fixed not working websocket proxy (fix: #5280) #5841

wants to merge 2 commits into from

Conversation

mxschmitt
Copy link

Hello

this PR fixes that websockets, e.g. via Socket.io won't be proxied through the HTTP proxy.
For more information check out issue: #5280 there are also some users who tested it successfully.

Best regards

Max.

Fixed that websockets, e.g. via Socket.io won't be proxied through the HTTP Proxy.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@datfinesoul
Copy link

This fix worked for me, would be great to see this get adopted.

@iansu
Copy link
Contributor

iansu commented Nov 22, 2018

Can you update the comment to explain what req.upgrade checks for?

@Timer
Copy link
Contributor

Timer commented Nov 23, 2018

We probably shouldn't proxy all upgrade requests, right?

@mxschmitt
Copy link
Author

mxschmitt commented Nov 23, 2018

@Timer

We probably shouldn't proxy all upgrade requests, right?

Yes good catch, I've reworked the logic, maybe the sockjs part can be improved.

What do you think about it?

@mxschmitt
Copy link
Author

cc @Timer any updates?

@stale
Copy link

stale bot commented Jan 22, 2019

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Jan 22, 2019
@mxschmitt
Copy link
Author

cc @iansu

@stale
Copy link

stale bot commented Feb 7, 2019

This pull request has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. Thank you for your contribution!

@mxschmitt
Copy link
Author

cc @iansu @Timer ....

@lock lock bot locked and limited conversation to collaborators Feb 12, 2019
@jamescostian jamescostian mentioned this pull request Feb 22, 2019
@facebook facebook unlocked this conversation Mar 19, 2019
@facebook facebook locked and limited conversation to collaborators Mar 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants