From 411ce1343e5c55a6a8a930e2971c2e82ecd2d04b Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Wed, 30 Dec 2015 00:30:54 -0500 Subject: [PATCH] Now accept all users whether authorize or not without log errors to allow anonymous usage --- lib/realtime.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/realtime.js b/lib/realtime.js index 16795cf..a69904a 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -35,12 +35,11 @@ var realtime = { }; function onAuthorizeSuccess(data, accept) { - accept(null, true); + accept(); } function onAuthorizeFail(data, message, error, accept) { - if (error) throw new Error(message); - accept(null, true); + accept(); //accept whether authorize or not to allow anonymous usage } function secure(socket, next) {