Can nginx be used as a reverse proxy for a backend websocket server?

前端 未结 7 2483
甜味超标
甜味超标 2020-11-30 19:51

We\'re working on a Ruby on Rails app that needs to take advantage of html5 websockets. At the moment, we have two separate \"servers\" so to speak: our main app running on

相关标签:
7条回答
  • 2020-11-30 20:14

    How about Nginx with the new HTTP Push module: http://pushmodule.slact.net/. It takes care of the connection juggling (so to speak) that one might have to worry about with a reverse proxy. It is certainly a viable alternative to Websockets which are not fully in the mix yet. I know developer of the HTTP Push module is still working on a fully stable version, but it is in active development. There are versions of it being used in production codebases. To quote the author, "A useful tool with a boring name."

    0 讨论(0)
提交回复
热议问题