Permalink
Browse files

added port variable

  • Loading branch information...
Lajt committed Jul 31, 2015
1 parent 9c61f1b commit d3d9d9ec93990fb450d8015da0368deee81eb8ec
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 d3d9d9e

Please sign in to comment.