mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
fix path for socket.io subfolder install
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user