CircuitRelayConfig class

Configuration for the circuit relay client.

Constructors

CircuitRelayConfig({bool enabled = true, @Deprecated('Static relays are never dialed; this option is ignored.') List<String> staticRelays = const <String>[], Duration reservationTimeout = const Duration(seconds: 30), Duration reservationRefreshInterval = const Duration(minutes: 5), int maxCircuits = 8})
Creates a new CircuitRelayConfig.
const
CircuitRelayConfig.fromJson(Map<String, dynamic> json)
Creates a CircuitRelayConfig from a JSON map.
factory

Properties

enabled → bool
Whether circuit relay support is enabled.
final
hashCode → int
The hash code for this object.
no setterinherited
maxCircuits → int
Maximum number of concurrent relayed circuits.
final
reservationRefreshInterval → Duration
Interval before a reservation expires at which to refresh it.
final
reservationTimeout → Duration
Timeout for reservation and CONNECT requests.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staticRelays → List<String>
Static relay multiaddresses to use when no dynamic relay is available.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this configuration to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited