title: getting the basic socket.io sample to work
body: <p>I'm having trouble even getting the very basic socket.io sample to run. For example the first example on the welcome page of their site: </p>
  
  <pre><code>var io = require('socket.io').listen(80);
  
  io.sockets.on('connection', function (socket) {
    socket.emit('news', { hello: 'world' });
    socket.on('my other event', function (data) {
      console.log(data);
    });
  });
  </code></pre>
  
  <p>on the server side and </p>
  
  <pre><code>&lt;script src="/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script&gt;
    var socket = io.connect('http://localhost');
    socket.on('news', function (data) {
      console.log(data);
      socket.emit('my other event', { my: 'data' });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>on the client side. If I save the server-side in a <code>host.js</code> file, and the client-side in a <code>client.htm</code> file, and I run <code>npm host.js</code>, I get </p>
  
  <pre><code>   info  - socket.io started
     warn  - error raised: Error: listen EADDRINUSE
  </code></pre>
  
  <p>which is already not really expected. Then, for the <code>client.htm</code> (or at least that's what I think that I'm supposed to do with it -- pasting it in a client.htm file), I only get a blank screen. Not very surprising, since it starts by including a nonexisting file <code>/socket.io/socket.io.js</code>, but even changing this to <code>host.js</code> (which I assume it is supposed to be) doesn't change the fact that I only get a blank screen...</p>
  
  <p>I'm clueless.</p>