SocketIO Connection Error with NodeJS and NginX
It turns out that I was receiving this error because my socket.io code was not being authenticated properly. The correct way can be seen in the docs herewith something like this:
io.use(function(socket, next) { var handshakeData = socket.request; // make sure the handshake data looks good as before // if error do this: // next(new Error('not authorized'); // else just call next next();});