Cotal TypeScript packages
    Preparing search index...

    Function openConnectReader

    • Open (or re-open, on reconnect) the connect reader on a DATA-account connection, shape-proving BOTH stores at bind (SPEC 13.12) — primary/un-mirrored/non-evicting, and the auth store additionally allow_direct=false. Call this on every (re)bind: a dropped reader reconnecting could land on a mirror/follower, so the primary-store proof must re-run before it serves any connect read again. A store that cannot be proved never serves.

      Parameters

      • nc: NatsConnection
      • space: string

      Returns Promise<ConnectReader>