Permalink
Browse files

Merge pull request #5 from Lajt/master

Add port variable
  • Loading branch information...
austinkettner committed Jul 31, 2015
2 parents 9c61f1b + d3d9d9e commit 9e9405891650dc24c4c0f0a4253c466d24becde1
Showing with 4 additions and 3 deletions.
  1. +4 −3 nodejs/server.js
View
@@ -1,11 +1,12 @@
var app = require('http').createServer(handler)
var io = require('socket.io')(app);
var lockstepio = require('./lockstep.io.js')(io);
+var port = 80;
-app.listen(80);
-console.log('Lockstep.IO: Listening on port 80!');
+app.listen(port);
+console.log('Lockstep.IO: Listening on port %s!', port);
console.log('Connect to Unity locally with the following URL:');
-console.log('ws://127.0.0.1:80/socket.io/?EIO=4&transport=websocket');
+console.log('ws://127.0.0.1:%s/socket.io/?EIO=4&transport=websocket', port);
function handler (req, res) {

0 comments on commit 9e94058

Please sign in to comment.