Last Active Time

Jan 25, 2015 at 10:14 AM
Just a quick question, I have a JSON keepalive in my server which I used to send a 'ping' out to clients where they have been inactive for 20 seconds. Is the last active time updated when the server sends something to the client, or just when the server receives something from the client?

If only when received, is there another parameter which shows connections which have had no activity?

I have idlesession settings, and clearout settings as well, but just want to optimize so I can minimize sending pings to clients if not needed (or should I just send a data packet which would not be received as a message?).

Many Thanks
Jan 28, 2015 at 3:32 AM
Yes, the last active time will be updated when you send anything!
BTW, SuperWebSocket/SuperSocket already has the feature you want.
Just enable clear idle session: http://docs.supersocket.net/v1-6/en-US/SuperSocket-Basic-Configuration