using websocketAddress config if supplied

This commit is contained in:
Julian Lam
2014-07-29 22:24:53 -04:00
parent fed8cc6d53
commit bb7a71389e
2 changed files with 2 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ apiController.getConfig = function(req, res, next) {
config.disableSocialButtons = parseInt(meta.config.disableSocialButtons, 10) === 1;
config.maxReconnectionAttempts = meta.config.maxReconnectionAttempts || 5;
config.reconnectionDelay = meta.config.reconnectionDelay || 200;
config.websocketAddress = meta.config.websocketAddress || '';
config.tagsPerTopic = meta.config.tagsPerTopic || 5;
config.topicsPerPage = meta.config.topicsPerPage || 20;
config.postsPerPage = meta.config.postsPerPage || 20;