fix path for socket.io subfolder install

v1.18.x
barisusakli 10 years ago
parent 14a2db4b2e
commit 3a0b92a0e4

@ -78,7 +78,7 @@ var socket,
var ioParams = {
'max reconnection attempts': config.maxReconnectionAttempts,
'reconnection delay': config.reconnectionDelay,
resource: RELATIVE_PATH.length ? RELATIVE_PATH.slice(1) + '/socket.io' : 'socket.io'
path: RELATIVE_PATH + '/socket.io'
};
if (utils.isAndroidBrowser()) {

@ -23,8 +23,7 @@ var io;
Sockets.init = function(server) {
var config = {
transports: ['websocket', 'polling'],
path: nconf.get('relative_path') + '/socket.io'
transports: ['websocket', 'polling']
};
requireModules();

Loading…
Cancel
Save