var express = require('express');
var app = express();

var PORT = 3000;


app.get('/', function (req, res) {
  res.send('Hello, world!');
})


app.listen(PORT, function (){
  console.log('listening on port', PORT);
});
@@ -52,100 +52,458 @@
 ();%0A
-%0Avar PORT = 3000;%0A%0A%0Aapp.get('/', function (req, res) %7B%0A  res.send('Hello, world!');%0A%7D)%0A%0A%0Aapp
+var server = require('http').createServer(app);  %0Avar io = require('socket.io').listen(server);%0A%0Avar PORT = 3000;%0A%0A%0Aapp.get('/', function (req, res) %7B%0A  res.sendFile(__dirname + '/socketTest.html');%0A%7D)%0A%0Aio.on('connection', function(client) %7B  %0A    console.log('Client connected!');%0A    client.on('join', function(data) %7B%0A      console.log(data);%0A    %7D);%0A    client.on('disconnect', function(client) %7B%0A      console.log('Bye!%5Cn');%0A    %7D);%0A%7D);%0A%0A%0Aserver
 .lis

Create basic socket server