Canton dAppBooster
    Preparing search index...

    Type Alias ConnectionSubscription

    ConnectionSubscription: Pick<ConnectionActorRef, "getSnapshot" | "subscribe">

    The connection machine as useSelector sees it: subscribe and read, never send. Narrowed from the actor ref so connect and disconnect stay the only senders — a transition asked for anywhere else is a lifecycle rule living outside the machine.

    import type { ConnectionSubscription } from '#src/types'

    const accountOf = (connection: ConnectionSubscription) => connection.getSnapshot().context.account