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) {