title: Socket.io "Listeners is undefined"
body: <p>Sorry if i'm ignorant or there is an actual problem here. I am hosting a http server with node.js, and apon running the server I get the error</p>
  
  <pre><code>    C:\Users\Xander\Desktop\Website&gt;node ./processes.js
  C:\Users\Xander\Desktop\Website\node_modules\socket.io\node_modules\engine.io\lib\server.js:
    var listeners = server.listeners('request').slice(0);
                          ^
  
  TypeError: Cannot read property 'listeners' of undefined
      at Server.attach
  (C:\Users\Xander\Desktop\Website\node_modules\socket.io\node_modules\engine.io\lib\server.js:423:25)
      at Function.attach (C:\Users\Xander\Desktop\Website\node_modules\socket.io\node_modules\engine.io\lib\engine.io.js:124:10)
      at Server.listen.Server.attach (C:\Users\Xander\Desktop\Website\node_modules\socket.io\lib\index.js:228:21)
      at Object.&lt;anonymous&gt; (C:\Users\Xander\Desktop\Website\processes.js:8:21)
      at Module._compile (module.js:409:26)
      at Object.Module._extensions..js (module.js:416:10)
      at Module.load (module.js:343:32)
      at Function.Module._load (module.js:300:12)
      at Function.Module.runMain (module.js:441:10)
      at startup (node.js:139:18)
  </code></pre>
  
  <p>This error has not occurred before and just recently came up. I've tried reinstalling socket.io, and personally editing the file. Though, to no avail. It fails every time. So i'll gladly take advice on how to fix this. Thank you for your time...</p>
  
  <p>How its being used</p>
  
  <pre><code>//Vars
  var http       = require('http');
  var express    = require("express");
  var app        = express();
  var path       = require("path");
  var connect    = require("connect");
  var io = require('socket.io').listen(server);
  var socket     = io.listen(server);
  
  //Defined port
  
  const PORT = 8080;
  
  //Connection handler
  
  function handleRequest(request, response){  
  response.end(request.url);
  };
  
  var server = http.createServer(handleRequest);
  
  //Log all connections made
  
  
  //Show .html file
  
  app.get('/',function(req,res){  
  res.sendFile(path.join(__dirname+'/index.html'));
  });
  
  //Port to listen to
  
  app.listen(8080);
  </code></pre>