Skip to content

Commit 411ce13

Browse files
committed
Now accept all users whether authorize or not without log errors to allow anonymous usage
1 parent 48de9a0 commit 411ce13

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/realtime.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ var realtime = {
3535
};
3636

3737
function onAuthorizeSuccess(data, accept) {
38-
accept(null, true);
38+
accept();
3939
}
4040

4141
function onAuthorizeFail(data, message, error, accept) {
42-
if (error) throw new Error(message);
43-
accept(null, true);
42+
accept(); //accept whether authorize or not to allow anonymous usage
4443
}
4544

4645
function secure(socket, next) {

0 commit comments

Comments
 (0)