This is because they do not support websockets. So socket.io occasionally tries to use websockets before resorting to using the XHR poll, which is not the same, but might be ok for your purposes (?). As the link in the Aashay post suggests, add this code to the server.js or app.js file:
io.configure(function () { io.set("transports", ["xhr-polling"]); io.set("polling duration", 10); });
But this is NOT the same as actually using websockets ..! For example, on OpenShift.com, you can connect through port 8000 to your application, and then actually use web ports, and the default port does not support it due to problems with Apache.
CommaToast
source share