checkBrowserThrottling method

void checkBrowserThrottling()

Implementation

void checkBrowserThrottling() {
  var currentTs = DateTime.now().millisecondsSinceEpoch;
  if (currentTs - _dataSentTs > 25000) {
    logger.finest('Throttling detected');
    // timer is supposed to be run every 20 seconds, if that passes 25 seconds, force it to run
    onPingTimer(null);
    if (_sending) {
      _send();
    }
  }
}