you are already using socket.io, so it shouldn't be any problem to sync the 
client if such a event occurs.

On Tuesday, August 21, 2012 1:21:21 PM UTC+2, Filipe wrote:
>
> Probably yes, but those points gained by time can be influenced by 
> external factors, for example, someone liking the message you posted 
> (you get bonus points), or moderator deleting your messages (subtracts 
> points). 
>
> Wouldn't this make the client side out if sync? 
>
> On Aug 21, 12:59 am, Kyle Mcgill <[email protected]> wrote: 
> > Why not just have a login time and a session/socket closed time? Then 
> > calculate the total amount of time the user has been logged in by, IF 
> you 
> > wanted to show an ticker of some kind with how much time the user has 
> been 
> > logged in by, you could still do this with login time by current time... 
> > 
> > I dont think processing a database update every min would be good idea 
> when 
> > you have millions of users all logged in at once :) 
> > 
> > Just some ideas... 
> > 
> > - Kyle 
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to