SocketConfig.withEnvironment constructor
SocketConfig.withEnvironment({
- InternetAddress? address,
- int? port,
- int? connectionCheckIntervalSeconds,
- 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'];