title: Localhost not working with node.js and socket.io
body: <p>I am trying to learn the basics of node.js and socket.io. I have been using this tutorial <a href="http://tutorialzine.com/2012/08/nodejs-drawing-game/" rel="nofollow noreferrer">http://tutorialzine.com/2012/08/nodejs-drawing-game/</a></p>
  <p>the full code for this problem can be seen in the link above.</p>
  <p>I can create a basic web server with node.js and get it to return hello world so I am sure that's installed correctly. However upon installing these packages</p>
  <p><code>npm install socket.io@0.9.10 node-static</code></p>
  <p>and setting up the serverside js as instructed</p>
  <pre><code>var app = require('http').createServer(handler),
  io = require('socket.io').listen(app),
  nstatic = require('node-static');
  
  var fileServer = new nstatic.Server('./');
  
  app.listen(8080);
  </code></pre>
  <p>I just get this prompt in my cmd and a constantly hanging web browser, instead of the html page that is meant to be served.I think I may have messed up an install but upon looking at the list of installed packages in npm it states both socket.io and node-static are present.</p>
  <p><a href="https://i.stack.imgur.com/khzcm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/khzcm.png" alt="enter image description here" /></a></p>