summaryrefslogtreecommitdiff
path: root/lib/realtime.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/realtime.js5
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) {