From 65cc624b150a918c63a85c60b4f95c31aa2afcd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sun, 13 Oct 2013 01:11:41 +0200 Subject: [PATCH] Change config 'websocket' to 'websockets' --- config.js | 2 +- lib/notifications.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index fb4f8d7..9337b15 100644 --- a/config.js +++ b/config.js @@ -17,7 +17,7 @@ module.exports = { "sessionSecret": process.env.SESSION_SECRET || "sessionSecret", /* Use websocket */ - "websocket": true + "websockets": true }, /* Database configuration */ diff --git a/lib/notifications.js b/lib/notifications.js index 850fdfd..b011134 100644 --- a/lib/notifications.js +++ b/lib/notifications.js @@ -21,7 +21,7 @@ var init = function(app, server) { }); // Configure - if (!config.web.websocket) { + if (!config.web.websockets) { io.set("transports", ["xhr-polling"]); io.set("polling duration", 10); }