that's the last of it!! :D

This commit is contained in:
Julian Lam
2014-01-10 16:00:03 -05:00
parent a2329980c8
commit a150691b5e
16 changed files with 623 additions and 313 deletions

View File

@@ -133,6 +133,21 @@ SocketUser.getActiveUsers = function(callback) {
module.parent.exports.emitOnlineUserCount(callback);
};
SocketUser.loadMore = function(data, callback) {
var start = data.after,
end = start + 19;
user.getUsers(data.set, start, end, function(err, data) {
if (err) {
winston.err(err);
} else {
callback({
users: data
});
}
});
};
/* Exports */
module.exports = SocketUser;