Hi everyone!
I have this scenario: Express, Socket.io and MongoDB.
The problem: reward points to the user on how many seconds (or time in
general) he keeps logged in (with the Socket opened).
This is for a chat site I'm building and I want to build a ranking
based on how many minutes users stay
What about socket.io .on('connect'), .on('disconnect').
You can get the time range user is logged, and then sum up these in db.
On Tue, Aug 21, 2012 at 3:09 AM, Filipe fili...@gmail.com wrote:
Hi everyone!
I have this scenario: Express, Socket.io and MongoDB.
The problem: reward points to