Closed Glavin001 closed 10 years ago
We should be able to use Express for serving the port number being used by Socket.io
Endpoint GET
/serverConfig
:
{
"port": 1234
}
Fixed by upgrading Nginx to version 1.5.6
. Looks like websocket support in version 1.3.13 ( see https://github.com/LearnBoost/socket.io/wiki/Nginx-and-Socket.io )
See http://stackoverflow.com/a/18658950/2578205 for Nginx solution to websockets.
Socket.io not working with Nginx reverse proxy from port 80.
This should be solution: https://chrislea.com/2013/02/23/proxying-websockets-with-nginx/