diff --git a/public/src/app.js b/public/src/app.js index 1bd80d9fac..29134a595a 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -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()) { diff --git a/src/socket.io/index.js b/src/socket.io/index.js index f982f5b766..647e12c9f1 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -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();