startHeartbeat method

void startHeartbeat()

Implementation

void startHeartbeat() {
  _heartbeatTimer?.cancel();
  _dbg('starting new heartbeat at: $_heartBeatDelay');
  _heartbeatTimer = Timer.periodic(_heartBeatDelay, (_) => doHeartbeat());
}