A good solution for a WebSocket / Socket.IO server (I've tried Nginx, Node, etc.)

后端 未结 3 766
一整个雨季
一整个雨季 2020-12-25 09:09

I\'m interested in setting up a Socket.IO server + Rails web application. However, as many are aware, there are not many web servers that support WebSockets. Here have been

3条回答
  •  被撕碎了的回忆
    2020-12-25 09:37

    You can use bouncy, but I'd recommend HAProxy, which is a better solution for highly trafficked websites. Check this question for a sample configuration: HAProxy + WebSocket Disconnection

    I would recommend using HAProxy + Nginx for serving static files + Node for dynamic stuff & websockets (Socket.IO).

    node-http-proxy is having problems with WebSockets in Node 0.6.x, so you cannot use that at the moment unfortunately.

提交回复
热议问题