@eddie wrote:
Today we are introducing a heartbeat feature. In short, it solves the problem of having non existent players still showing as active players in rooms. This could happen when a connection is lost due to an interrupted internet connection. The heartbeat message will let the server know when a player is inactive. So no more waiting 15 minutes for stale clients to be removed.
In Flash, this change should be invisible to the game developer. In JS, this means a player who left a game open on an inactive tab will quickly timeout within 2 minutes. Having a player timeout from the SMP multiplayer so quickly may not be wanted. In order to keep an inactive tab's socket open, I suggest using a web worker. Workers are background processes that will continue to run even on inactive tabs.
Posts: 1
Participants: 1