Skip to content

Commit

Permalink
added port variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Lajt committed Jul 31, 2015
1 parent 9c61f1b commit d3d9d9e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nodejs/server.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit d3d9d9e

Please sign in to comment.