_computeLoadingTime(stats) {
    if (!stats) {
      return 0;
    }
    let value = 0;
    if (stats.dns && stats.dns > 0) {
      value += stats.dns;
    }
    if (stats.connect && stats.connect > 0) {
      value += stats.connect;
    }
    if (stats.receive && stats.receive > 0) {
      value += stats.receive;
    }
    if (stats.send && stats.send > 0) {
      value += stats.send;
    }
    if (stats.ssl && stats.ssl > 0) {
      value += stats.ssl;
    }
    if (stats.wait && stats.wait > 0) {
      value += stats.wait;
    }
    return value;
  }
/**
   * Computes a request / response loading time from the stats object
   * @param {Objject} stats A stats property of the socket client response.
   * @return {Number} A time to full response in miliseconds. 0 if stats unavailable.
   */
Computes a request / response loading time from the stats object
@param {Objject} stats A stats property of the socket client response.
@return {Number} A time to full response in miliseconds. 0 if stats unavailable.
Computes a request / response loading time from the stats object @param { Objject } stats A stats property of the socket client response . @return { Number } A time to full response in miliseconds . 0 if stats unavailable .
_computeLoadingTime(stats) {
    if (!stats) {
      return 0;
    }
    let value = 0;
    if (stats.dns && stats.dns > 0) {
      value += stats.dns;
    }
    if (stats.connect && stats.connect > 0) {
      value += stats.connect;
    }
    if (stats.receive && stats.receive > 0) {
      value += stats.receive;
    }
    if (stats.send && stats.send > 0) {
      value += stats.send;
    }
    if (stats.ssl && stats.ssl > 0) {
      value += stats.ssl;
    }
    if (stats.wait && stats.wait > 0) {
      value += stats.wait;
    }
    return value;
  }
_computeLoadingTime ( stats ) { if ( ! stats ) { return 0 ; } let value = 0 ; if ( stats . dns && stats . dns > 0 ) { value += stats . dns ; } if ( stats . connect && stats . connect > 0 ) { value += stats . connect ; } if ( stats . receive && stats . receive > 0 ) { value += stats . receive ; } if ( stats . send && stats . send > 0 ) { value += stats . send ; } if ( stats . ssl && stats . ssl > 0 ) { value += stats . ssl ; } if ( stats . wait && stats . wait > 0 ) { value += stats . wait ; } return value ; }
Computes a request / response loading time from the stats object
 @param {Objject} stats A stats property of the socket client response.
Computes a request / response loading time from the stats object @param { Objject } stats A stats property of the socket client response .