title: NodeJS socket connection not working
body: <p>I'm trying to create a live web chat system using Socket.io but i'm using it alongside a LAMP stack also. At the moment I am just trying to get my HTML page to recognize connections on localhost:8888 but the server side on localhost:3000 should be console logging the below when somebody connects, but i'm getting nothing?</p>
  
  <p>I have this on my server side -</p>
  
  <pre><code>var app = require('express')();
  var http = require('http').Server(app);
  var io = require('socket.io')(http);
  
  http.listen(3000, function(){
    console.log('listening on *:3000');
  });
  </code></pre>
  
  <p>This is my client side - </p>
  
  <pre><code>  &lt;script src="http://localhost:3000/socket.io/socket.io.js"&gt;&lt;/script&gt;
  
    &lt;script&gt;
  
    var socket = io.connect('localhost:3000');
  
      socket.on('connection', function(io){
        console.log('a user connected');
        io.on('disconnect', function(){
          console.log('user disconnected');
        });
      });               
  
  
    &lt;/script&gt;     
  </code></pre>
  
  <p>I'm not seeing any of the console logs? Am I calling it wrong or</p>