Now accept all users whether authorize or not without log errors to allow anonymous usage

This commit is contained in:
Wu Cheng-Han 2015-12-30 00:30:54 -05:00
parent 48de9a02a3
commit 411ce1343e

View file

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