SocketConfig.withEnvironment constructor

SocketConfig.withEnvironment({
  1. InternetAddress? address,
  2. int? port,
  3. int? connectionCheckIntervalSeconds,
  4. String? privateKeyPath,
})

Implementation

SocketConfig.withEnvironment({
  InternetAddress? address,
  int? port,
  int? connectionCheckIntervalSeconds,
  String? privateKeyPath,
})  : address = address ?? _defaultAddress(),
      port = port ?? _defaultNumber('IRCD_PORT', 6667),
      connectionCheckIntervalSeconds = connectionCheckIntervalSeconds ??
          _defaultNumber('IRCD_CONN_CHECK_INTERVAL', 30),
      privateKeyPath =
          privateKeyPath ?? Platform.environment['IRCD_PRIVATE_KEY'];