lib/RemoteSlave.js
/**
   * Validates the connection string passed to the slave constructor within the argument "connectOptions".
   * @override
   * @param {String} loc The location to validate.
   * @return {String} The location.
   * @throws {TypeError} If the location is invalid.
   */
Validates the connection string passed to the slave constructor within the argument "connectOptions".
@override
@param {String} loc The location to validate.
@return {String} The location.
@throws {TypeError} If the location is invalid.
Validates the connection string passed to the slave constructor within the argument " connectOptions " . @override @param { String } loc The location to validate . @return { String } The location . @throws { TypeError } If the location is invalid .
checkLocation(loc) {
    if (!REMOTE_CONNECTION_REGEXP.test(loc)) {
      throw new TypeError(`Bad remote connection string: ${loc}`);
    }
    if (!/^http(s)?:\/\//.test(loc)) loc = `http://${loc}`;
    return loc;
  }
checkLocation ( loc ) { if ( ! REMOTE_CONNECTION_REGEXP . test ( loc ) ) { throw new TypeError ( ` ${ loc } ` ) ; } if ( ! / ^http(s)?:\/\/ / . test ( loc ) ) loc = ` ${ loc } ` ; return loc ; }
Validates the connection string passed to the slave constructor within the argument "connectOptions".
Validates the connection string passed to the slave constructor within the argument " connectOptions " .