chromecow
Visitor
|
Re:how to detect users got disconnected accidental - 2008/04/17 06:24
Interesting. For the socket connection, I wonder, is there a difference between a client who has been disconnected and one who is just not currently sending messages?
You could probably write a module that keeps track of how long since the client last posted a message. After a certain threshold (3 seconds, maybe), the server asks the client 'Are you still there?' If no reply is received withing a short span, server could boot the client.
|