title: Socket.IO connection error
body: <p>I've an application in node.js with socket.io. Everything was running completely fine, but suddenly the browser started to send this error.</p>
  
  <blockquote>
    <p>failed: Error in connection
    establishment:net::ERR_TUNNEL_CONNECTION_FAILED</p>
  </blockquote>
  
  <p>I didn't make any code change.</p>
  
  <p>The protocol used by socket is ws:// and when I try to use this url in browser</p>
  
  <blockquote>
    <p>'ws://highgarden-nodejs-91180.sae1.nitrousbox.com/socket.io/?EIO=3&amp;transport=websocket&amp;sid=T9Unec8KbWw-GAL8AAAF'</p>
  </blockquote>
  
  <p>Chrome returns this error: </p>
  
  <blockquote>
    <p>Failed to load resource: net::ERR_DISALLOWED_URL_SCHEME</p>
  </blockquote>
  
  <p>This is a part of the socket setup code:</p>
  
  <p><em>server.js:</em></p>
  
  <pre><code>    var app = express();
      var server = http.createServer(app);
      var io = require('socket.io').listen(server);
      var port = process.env.PORT || 3000
  *------------------------------------------*
  
      // routes ===
      var routes = require('./config/routes.js');
      var sock = {}
      routes(app, passport, sock); 
      io.sockets.on('connection', sock.update);
  
      // launch ===
      server.listen(port);
  </code></pre>
  
  <p>Thanks advance.</p>