// socket.io initialization var server = http.createServer(app).listen(3000); var io = require('socket.io').listen(server); io.set('log level', 1); // reduce logging