Sending of server queries after receiving a heartbeat