heartbeat in client.java