mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
using websocketAddress config if supplied
This commit is contained in:
@@ -100,7 +100,7 @@ var socket,
|
|||||||
ioParams.transports = ['xhr-polling'];
|
ioParams.transports = ['xhr-polling'];
|
||||||
}
|
}
|
||||||
|
|
||||||
socket = io.connect('', ioParams);
|
socket = io.connect(config.websocketAddress, ioParams);
|
||||||
reconnecting = false;
|
reconnecting = false;
|
||||||
|
|
||||||
socket.on('event:connect', function (data) {
|
socket.on('event:connect', function (data) {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ apiController.getConfig = function(req, res, next) {
|
|||||||
config.disableSocialButtons = parseInt(meta.config.disableSocialButtons, 10) === 1;
|
config.disableSocialButtons = parseInt(meta.config.disableSocialButtons, 10) === 1;
|
||||||
config.maxReconnectionAttempts = meta.config.maxReconnectionAttempts || 5;
|
config.maxReconnectionAttempts = meta.config.maxReconnectionAttempts || 5;
|
||||||
config.reconnectionDelay = meta.config.reconnectionDelay || 200;
|
config.reconnectionDelay = meta.config.reconnectionDelay || 200;
|
||||||
|
config.websocketAddress = meta.config.websocketAddress || '';
|
||||||
config.tagsPerTopic = meta.config.tagsPerTopic || 5;
|
config.tagsPerTopic = meta.config.tagsPerTopic || 5;
|
||||||
config.topicsPerPage = meta.config.topicsPerPage || 20;
|
config.topicsPerPage = meta.config.topicsPerPage || 20;
|
||||||
config.postsPerPage = meta.config.postsPerPage || 20;
|
config.postsPerPage = meta.config.postsPerPage || 20;
|
||||||
|
|||||||
Reference in New Issue
Block a user