Websockets dont work with a router
Problem
I'm not sure if this is a bug or not but websockets wont work with a proxy table e.g [code block] It works fine proxying web requests. But websockets don't work. If I access the site directly it does work (with websockets) I also unsuccessfully tried adding in [code block] It also looks like `server.on('upgrade` doesn't fire. In addition, even without the above event. If there are attempts to use websockets (after a while). The below error will appear: [code block] After a while it will run out of memory and crash.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Websockets dont work with a router
See https://github.com/nodejitsu/node-http-proxy/pull/402#issuecomment-16539748
Trust Score
1 verification
- 1
See https://github.com/nodejitsu/node-http-proxy/pull/402#issuecomment-16539748
See https://github.com/nodejitsu/node-http-proxy/pull/402#issuecomment-16539748
Validation
Resolved in http-party/node-http-proxy GitHub issue #421. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep