|
|
@ -26,13 +26,13 @@ SocketMeta.reconnected = function(socket, data, callback) {
|
|
|
|
user.notifications.pushCount(uid);
|
|
|
|
user.notifications.pushCount(uid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
/*if (process.env.NODE_ENV === 'development') {
|
|
|
|
if (uid) {
|
|
|
|
if (uid) {
|
|
|
|
winston.info('[socket] uid ' + uid + ' (' + sessionID + ') has successfully reconnected.');
|
|
|
|
winston.info('[socket] uid ' + uid + ' (' + sessionID + ') has successfully reconnected.');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
winston.info('[socket] An anonymous user (' + sessionID + ') has successfully reconnected.');
|
|
|
|
winston.info('[socket] An anonymous user (' + sessionID + ') has successfully reconnected.');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
emitter.on('nodebb:ready', function() {
|
|
|
|
emitter.on('nodebb:ready', function() {
|
|
|
|