diff options
author | Wu Cheng-Han | 2015-12-30 00:30:54 -0500 |
---|---|---|
committer | Wu Cheng-Han | 2015-12-30 00:30:54 -0500 |
commit | 411ce1343e5c55a6a8a930e2971c2e82ecd2d04b (patch) | |
tree | 7e9c653ce48500e25b972680e17eb6c2c125a5d4 | |
parent | 48de9a02a327d539457c2889d7de5fe8c6cd821d (diff) |
Now accept all users whether authorize or not without log errors to allow anonymous usage
-rw-r--r-- | lib/realtime.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/realtime.js b/lib/realtime.js index 16795cf6..a69904a9 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) { |