RelayManager<T> constructor

RelayManager<T>({
  1. required GlobalState globalState,
  2. required NostrTransportFactory nostrTransportFactory,
  3. EngineAdditionalDataFactory? engineAdditionalDataFactory,
  4. List<String>? bootstrapRelays,
  5. 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);
}