changing socket.io to exist on the same port as the server, made config file template (removed config file from repo)

v1.18.x
Julian Lam 12 years ago
parent e6139487f6
commit 2d8725d522

1
.gitignore vendored

@ -5,3 +5,4 @@
npm-debug.log
node_modules/
sftp-config.json
public/config.json

@ -0,0 +1,6 @@
{
"socket" : {
"address" : "localhost",
"port" : "4567"
}
}

@ -1,6 +0,0 @@
{
"socket" : {
"address" : "198.199.80.41",
"port" : "8081"
}
}

@ -44,3 +44,4 @@ var express = require('express'),
}(WebServer));
server.listen(config.port);
global.server = server;

@ -1,5 +1,5 @@
var SocketIO = require('socket.io').listen(8081);
var SocketIO = require('socket.io').listen(global.server);
(function(io) {

Loading…
Cancel
Save