mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fix path for socket.io subfolder install
This commit is contained in:
@@ -78,7 +78,7 @@ var socket,
|
|||||||
var ioParams = {
|
var ioParams = {
|
||||||
'max reconnection attempts': config.maxReconnectionAttempts,
|
'max reconnection attempts': config.maxReconnectionAttempts,
|
||||||
'reconnection delay': config.reconnectionDelay,
|
'reconnection delay': config.reconnectionDelay,
|
||||||
resource: RELATIVE_PATH.length ? RELATIVE_PATH.slice(1) + '/socket.io' : 'socket.io'
|
path: RELATIVE_PATH + '/socket.io'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (utils.isAndroidBrowser()) {
|
if (utils.isAndroidBrowser()) {
|
||||||
|
|||||||
@@ -23,8 +23,7 @@ var io;
|
|||||||
|
|
||||||
Sockets.init = function(server) {
|
Sockets.init = function(server) {
|
||||||
var config = {
|
var config = {
|
||||||
transports: ['websocket', 'polling'],
|
transports: ['websocket', 'polling']
|
||||||
path: nconf.get('relative_path') + '/socket.io'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
requireModules();
|
requireModules();
|
||||||
|
|||||||
Reference in New Issue
Block a user