alaingilbert/Turntable-API — pull request #121 by bboe (2012-11-01 23:45:41+00:00)
Title: Remove updatePresence timer and update after each message if needed.

There is a super simple solution to the synchronization problem. Given that the regular heartbeat request messages handle the case when the room is inactive, the only problem is when the room is active. The solution is to possibly trigger the heartbeat in response to any message type (if the last one was sent over 10 seconds before).

This gives a maximum interval of 22 seconds between heartbeats if the last activity was just before TT was about to send a heartbeat request message (assuming those come 12 seconds after the last activity).