Skip to content

Commit

Permalink
#64
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Smith committed Feb 2, 2014
1 parent 337cfc2 commit 86eddf7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
10 changes: 8 additions & 2 deletions src/server/cloak/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -208,8 +216,6 @@ module.exports = (function() {

}, config.gameLoopSpeed);

console.log(('cloak running on port ' + config.port).info);

},

_setupHandlers: function(socket) {
Expand Down

0 comments on commit 86eddf7

Please sign in to comment.