ClientOpener typedef

ClientOpener = Future<AtClient> Function({required String atSign, required String enrollmentId, required WrittenAtKeysIo keysIo, required AtLookupMuxable lookUp})

Opens the client that runs as enrollmentId on lookUp: the connection that already authenticated as it. The client reads its @keys from keysIo and persists every change through it. It takes over lookUp and stops it when the client stops; it never closes keysIo. If this throws, lookUp is still the caller's to release.

Implementation

typedef ClientOpener = Future<AtClient> Function(
    {required AtLookupMuxable lookUp,
    required String atSign,
    required String enrollmentId,
    required WrittenAtKeysIo keysIo});