Documentation
    Preparing search index...

    Function describeWalletConnectionSource

    • Classifies a connection source for analytics. Pure — the caller supplies the one piece of information the source shape cannot carry.

      Ordering mirrors createProvider() in ton-connect.ts so the two cannot drift: the array case first, then the two guarded shapes, with HTTP as the fallthrough (there is deliberately no isWalletConnectionSourceHTTP guard in this module).

      Parameters

      • source: WalletConnectionSource | Pick<WalletConnectionSourceHTTP, "bridgeUrl">[]

        the value passed to connect().

      • isInsideWalletBrowser: (jsBridgeKey: string) => boolean

        whether the dApp is running inside the named wallet's browser, which is what separates embedded from injected. Passed in rather than imported so this module keeps no dependency on provider/, and so the classification stays testable without a window.

      Returns WalletConnectionSourceInfo