text: var app = require('express')();
  var http = require('http').Server(app);
  var io = require('socket.io')(http);
  
  app.use(app.static('public'));
  
  app.get('/chat', function(req, res){
      res.sendFile(__dirname +  '\/chat.html');
  });
  
  app.get('/', function(req, res) {
      res.sendFile(__dirname__+ '\/index.html');
  });
  
  io.on('connection', function(socket){
      console.log('a user connected');
      socket.on('disconnect', function() {
          console.log("user disconnected");
      });
      socket.on('chat message', function(msg) {
          io.emit('chat message', msg);
      })
  });
  
  http.listen(3000, function(){
      console.log('listening on *:3000');
  });