use setTimeout to reconnect game server
update todo
move heartbeat to lower level