Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var ipport = 1337;
var wsport = 8001;
var http = require('http');
var handle = require('./handlers');
var url = require("url");
Expand Down Expand Up @@ -48,8 +50,8 @@ http.createServer(function handler(req, res) {
}
});
}
}).listen(1337);
console.log('Server running at http://*:1337/');
}).listen(ipport);
console.log(`Server running at http://*:${ipport}/`);


// ------------------ WebSocket ------------------------------------------------
Expand Down Expand Up @@ -113,4 +115,4 @@ var server = ws.createServer(function (conn) {
closeLogs();
closeDump();
});
}).listen(8001);
}).listen(wsport);