title: Why I get 'Cannot GET /' on my express server?
body: <p>I wrote a minimalistic example of a server with <code>node.js</code> with which I want to get console notification that client connected. I am using following version of modules </p>
  
  <ul>
  <li><code>express@3.0.6</code></li>
  <li><code>socket.io@0.9.13</code>  </li>
  <li><code>node@0.8.7</code></li>
  </ul>
  
  <p>So I wrote this : </p>
  
  <p><code>app.js</code></p>
  
  <pre><code>var socket = require('socket.io');
  var express = require('express');
  var http = require('http');
  
  var app = express();
  
  var server = http.createServer(app);
  
  var io = socket.listen(server);
  //var io = socket.listen(app);
  
  io.sockets.on('connection',function(client){
          console.log("Client connected...");
  
          client.emit('messages', {hello: 'world'});
  });
  
  app.listen(8080);
  </code></pre>
  
  <p><code>index.html</code></p>
  
  <pre><code>&lt;script src="node_modules/socket.io/lib/socket.io.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      var server = io.connect("http://localhost:8080");
  
      server.on('messages', function(data){
          alert(data.hello);
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I have my catalog structure as follows: </p>
  
  <pre><code>|-- app.js
  |-- index.html
  `-- node_modules
      |-- express
      |   |-- bin
      |   |-- client.js
      |   |-- History.md
      |   |-- index.js
      |   |-- lib
      |   |-- LICENSE
      |   |-- Makefile
      |   |-- node_modules
      |   |-- package.json
      |   |-- Readme.md
      |   `-- test.js
      `-- socket.io
          |-- benchmarks
          |-- History.md
          |-- index.js
          |-- lib
          |-- LICENSE
          |-- Makefile
          |-- node_modules
          |-- package.json
          `-- Readme.md
  </code></pre>