kernl API
    Preparing search index...

    Interface ConnectionRouting<T>

    How a service reaches one domain's connections. It is read on every call, so a connection the person edits or removes is seen at once: a record keeps a connection id and resolves it each time.

    interface ConnectionRouting<T> {
        all(): readonly RoutedClient<T>[];
        byId(id: string): RoutedClient<T> | undefined;
        preferred(): RoutedClient<T> | undefined;
    }

    Type Parameters

    • T
    Index
    • Every connection that can serve now (set up and not locked), in the order added.

      Returns readonly RoutedClient<T>[]

    • One connection by id; undefined when it was removed or is locked.

      Parameters

      • id: string

      Returns RoutedClient<T> | undefined

    • Where new work goes: the person's default for the domain, else the first that can serve. Undefined when none can.

      Returns RoutedClient<T> | undefined