SocketConnector constructor

SocketConnector({
  1. bool verbose = false,
  2. bool logTraffic = false,
  3. Duration timeout = defaultTimeout,
  4. Duration authTimeout = defaultTimeout,
  5. IOSink? logger,
})

Implementation

SocketConnector({
  this.verbose = false,
  this.logTraffic = false,
  this.timeout = defaultTimeout,
  this.authTimeout = defaultTimeout,
  IOSink? logger,
}) {
  this.logger = logger ?? stderr;
  Timer(timeout, () {
    gracePeriodPassed = true;
    if (connections.isEmpty) {
      close();
    }
  });
}