title: Socket.io tutorial not printing connection to console
body: <pre><code>var app = require('express')();
  var http = require('http').Server(app);
  var io = require('socket.io')(http);
  
  app.get('/', function(req, res){
      res.sendFile(__dirname + "/index.html");
  });
  
  http.listen(3000, function() {
      console.log('listening on 3000');
  });
  
  io.on('connection', function(socket){
    console.log('a user connected');
    socket.on('disconnect', function(){
      console.log('user disconnected');
    });
  });
  </code></pre>
  
  <p>I don't understand why it won't print "a user connected" when I refresh the page and I was wondering why that is. Below is the index.html file. I am following the get-started tutorial (<a href="http://socket.io/get-started/chat/" rel="nofollow">http://socket.io/get-started/chat/</a>)</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Socket.IO chat&lt;/title&gt;
      &lt;style type="text/css"&gt;
       * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
       }
       body {
          font: 13px Helvetica, Arial;
       }
       form {
          background: #000;
          padding: 3px;
          position: fixed;
          bottom: 0;
          width: 100%;
       }
       form input {
          border: 0;
          padding: 10px;
          width: 90%;
          margin-right: 0.5%;
       }
       form button {
          width: 9%;
          background: rgb(130, 224, 255);
          border: none;
          padding: 10px;
       }
       #messages {
          list-style-type: none;
          margin: 0;
          padding: 0;
       }
       #messages li {
          padding: 5px 10px;
       }
       #messages li:nth-child(odd) {
          background: #eee;
       }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;ul id="messages"&gt;
          &lt;form action=""&gt;
              &lt;input id="m" autocomplete="off" /&gt;
              &lt;button&gt;Send&lt;/button&gt;
          &lt;/form&gt;
      &lt;/ul&gt;
  
      &lt;script src="socket.io/socket.io.js"&gt;
          var socket = io();
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>