homeserver property

Uri? get homeserver
inherited

The homeserver this client is communicating with.

Implementation

Uri? get homeserver => baseUri;
  1. @override
set homeserver (Uri? homeserver)
override

The homeserver this client is communicating with.

In case the homeserver's host differs from the previous value, the wellKnown cache will be invalidated.

Implementation

@override
set homeserver(Uri? homeserver) {
  if (homeserver?.host != this.homeserver?.host) {
    _wellKnown = null;
    unawaited(database?.storeWellKnown(null));
  }
  super.homeserver = homeserver;
}