constructor()

in src/RAPIDClient.js [20:34]


  constructor(hostnamePort, httpClient, nativeClient) {
    this.http = httpClient || require('http');
    this.nativeClient =
      nativeClient || require('./NativeModuleLoader.js').load();
    this.useAlternativeClient =
      process.env['AWS_LAMBDA_NODEJS_USE_ALTERNATIVE_CLIENT_1'] === 'true';

    let [hostname, port] = hostnamePort.split(':');
    this.hostname = hostname;
    this.port = parseInt(port, 10);
    this.agent = new this.http.Agent({
      keepAlive: true,
      maxSockets: 1,
    });
  }