title: node.js Cannot GET /socket.io
body: <p>I have the following app with express/socket.io (the app is listening and live without any errors).
  When I http-request it I get the following error:</p>
  
  <pre><code>GET http://xxxxxxx.com:3035/socket.io/1/?t=1449090610579 400 (Bad Request)
  </code></pre>
  
  <p>And on the socket.io reponse at <a href="http://xxxxxxx.com:3035/socket.io" rel="nofollow">http://xxxxxxx.com:3035/socket.io</a> I get:</p>
  
  <pre><code>Cannot GET /socket.io
  </code></pre>
  
  <p>app.js:</p>
  
  <pre><code>var express = require('express'),
      http = require('http'),
      sio= require('socket.io'),
      fs=require('fs'),
      app = express();
  
  var mysql      = require('mysql');
  var connection = mysql.createConnection({
          host: 'localhost',
          user: 'xxxxxxx',
          password: 'xxxxxxx',
          database: 'xxxxxxxxx'
      }
  );
  connection.connect();
  
  // Start the server
  var server=app.listen(3035, function () {
      console.log("Express server listening on port %d",3035);
  });
  app.io=io=sio.listen(server);
  .
  .
  .
  </code></pre>
  
  <p>on the client side:</p>
  
  <pre><code>var socket = io.connect('http://xxxxxx.com:3035');
  </code></pre>