-
Notifications
You must be signed in to change notification settings - Fork 2k
Websockets dont work with a router #421
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
Comments
See #402 (comment) |
I just tried to update from 0.8.5 to 0.10.2 and I see the same issue... :-( 0.8.5 ok |
DId you guys figure out a solution somehow? Still having troubles proxying ws |
I would love to know the solution as well ... |
Hey @RushPL I found that the only solution atm is to use nginx to proxy stuff. |
Thanks a lot. Actually I found out about nvm which stands for Node Version Manager. I was able to run the node-http-proxy binary on the older node version and still have the newest node for rest of my stuff. I have also tried the 0.10.x branch but it didn't work at all. |
Yep, same here. tried the http-proxy of nodejitsu, but no luck with node 0.10.x, so I just switched to nginx, where 0.10.x work just fine |
+1 please. In the meantime, say I did want to use http-proxy for routing with WS. That seems impossible right now so will have to resort to nginx or not bother with WS. Can anyone comment on the memory footprint of nginx versus a routing http-proxy script? Nginx would be setup to route and not cache or do anything else fancy. |
You can use old node-http-proxy with Node.JS 0.8 - it works fine with web sockets. I have observed only negligible memory usage on the proxy's part but I am not running thousands of web sockets so your mileage may vary. You can get Node 0.8 very easily with Node Version Manager. |
hi! closing this issue since it refers to a dropped component (router) and the 0.8.x branch |
router has been dropped? I assume that is because there is another node module that can be integrated with http-proxy to give the same function? If someone could put a quick link/note here to explain how that can/should be done that would be great. Sorry - I'm no expert in any of this or would try to do that. |
I'm not sure if this is a bug or not but websockets wont work with a proxy table e.g
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
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:After a while it will run out of memory and crash.
The text was updated successfully, but these errors were encountered: