var express = require('express');
var app = express();
var http = require('http').createServer(app);
var io = require('socket.io')(http);
var port = process.env.PORT || 3000;

app.use(express.static(__dirname + '/public'));
/*
app.get('/', function(req, res) {
	res.sendFile('/index.html');
});
*/
http.listen(port, function() {
    console.log('listening on port', port);
});


// listen to 'chat' messages
io.on('connection', function(socket){
    socket.on('chat', function(msg){
	io.emit('chat', msg);
    });
});

@@ -173,130 +173,8 @@
 0;%0A%0A
-app.use(express.static(__dirname + '/public'));%0A/*%0Aapp.get('/', function(req, res) %7B%0A%09res.sendFile('/index.html');%0A%7D);%0A*/%0A
 http
@@ -181,16 +181,17 @@
 .listen(
+ 
 port, fu
@@ -196,16 +196,17 @@
 function
+ 
 () %7B%0A   
@@ -251,16 +251,64 @@
 );%0A%7D);%0A%0A
+app.use(express.static(__dirname + '/public'));%0A
 %0A// list

reset index.js