boostHeartbeat method
speeds up the heartbeat for boostSeconds
seconds
Implementation
void boostHeartbeat(int boostSeconds) {
// restart the heartbeat
// if the aggressive flag was called
// we poll more frequently for a few seconds
_boostedheartbeatTimer?.cancel();
stopHeartbeat();
resetHeartbeat(const Duration(milliseconds: 300));
_boostedheartbeatTimer = Timer(Duration(seconds: boostSeconds), () => resetHeartbeat());
}