Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add logging

  • Loading branch information...
commit fe84391b8531b6b680403c74c2c1f5a94a5cd699 1 parent e78b72c
@woloski woloski authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 apps/pictionary/server.js
View
7 apps/pictionary/server.js
@@ -3,8 +3,11 @@ var socketio = require('socket.io');
var fs = require('fs');
var sanitizer = require('sanitizer');
-app.listen(process.env.PORT || 7000);
-var io = socketio.listen(app, { log: false });
+var port = process.env.PORT || 7000;
+app.listen(port);
+console.log('server listening on ' + port);
+var io = socketio.listen(app, { log: true });
+console.log('socket.io started');
function handler (req, res) {
fs.readFile(__dirname + '/client' + req.url,
Please sign in to comment.
Something went wrong with that request. Please try again.