add a heartbeat to keep the connection open