Creates the sender; nothing is sent before HeartbeatSender.start or HeartbeatSender.beatOnce.
The build and send callbacks, clock, settings and logger.
The wait between two heartbeats in milliseconds: the last interval_ms of the server.
Builds and sends one heartbeat now and keeps the interval of the answer.
Whether a heartbeat was sent and accepted; false when build skipped it, or build
or the send failed (logged, never thrown).
Starts the loop: one heartbeat now, then one per interval; a second call does nothing.
Stops the loop after the heartbeat in flight, if any.
When the loop has ended.
Sends the agent heartbeat in a loop and keeps the interval of the answers.
Example