RelayManager<T> constructor
RelayManager<T> ({
- required GlobalState globalState,
- required NostrTransportFactory nostrTransportFactory,
- EngineAdditionalDataFactory? engineAdditionalDataFactory,
- List<
String> ? bootstrapRelays, - dynamic allowReconnect = true,
Creates a new relay manager.
Implementation
RelayManager(
{required this.globalState,
required this.nostrTransportFactory,
this.engineAdditionalDataFactory,
List<String>? bootstrapRelays,
allowReconnect = true}) {
_allowReconnectRelays = allowReconnect;
_connectSeedRelays(urls: bootstrapRelays ?? DEFAULT_BOOTSTRAP_RELAYS);
}