AtLookUpFactory typedef

AtLookUpFactory = AtLookupMuxable Function({required String atSign, required AtAuthenticator? authenticator, required AtRootDomain rootDomain, SecondaryAddressFinder? secondaryAddressFinder})

Builds the connection a client uses to reach an atServer: what an application hands the entry points so that every connection the client opens - its own, its sync's, its monitor's - travels the way the application chose.

The factory captures how bytes travel: the transport and its settings, or a different AtLookUp implementation altogether. Each call names what the connection is for: atSign is whose atServer, rootDomain is where the atDirectory that finds it is, authenticator is how the connection authenticates (null for one that never does), and secondaryAddressFinder replaces the atDirectory lookup when the caller holds one. What a connection announces about the client travels in its authenticator's from:. The default is secureSocketLookUps in package:at_lookup/at_lookup_io.dart.

Implementation

typedef AtLookUpFactory = AtLookupMuxable Function({
  required String atSign,
  required AtRootDomain rootDomain,
  required AtAuthenticator? authenticator,
  SecondaryAddressFinder? secondaryAddressFinder,
});