diff --git a/package.json b/package.json index d442752..511bb4a 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "grunt-contrib-copy": "~0.4.1", "grunt-github-pages": "0.0.3", "grunt-contrib-nodeunit": "~0.2.2", - "grunt-contrib-jshint": "~0.7.2" + "grunt-contrib-jshint": "~0.7.2", + "express": "~3.4.8" } } diff --git a/src/server/cloak/index.js b/src/server/cloak/index.js index 9c26b6d..57b86de 100644 --- a/src/server/cloak/index.js +++ b/src/server/cloak/index.js @@ -78,6 +78,14 @@ module.exports = (function() { io = socketIO.listen(config.express || config.port); + if (config.express) { + console.log(('cloak running with express on port ' + + config.express.address().port).info); + } + else { + console.log(('cloak running on port ' + config.port).info); + } + // We won't want to try to serialize this later if (config.express) { delete config.express; @@ -208,8 +216,6 @@ module.exports = (function() { }, config.gameLoopSpeed); - console.log(('cloak running on port ' + config.port).info); - }, _setupHandlers: function(socket) {