fix path for socket.io subfolder install

This commit is contained in:
barisusakli
2014-12-01 14:52:21 -05:00
parent 14a2db4b2e
commit 3a0b92a0e4
2 changed files with 2 additions and 3 deletions

View File

@@ -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()) {

View File

@@ -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();