UMIS SDK
    Preparing search index...

    Function createMemoryTransportPair

    • Two transports that are the ends of one in-memory link, for tests and for running a verifier and a wallet side by side in one program. Frames are cut into chunks of at most mtu bytes (185 by default) and put back together on the other side, exactly as a BLE link does, and they are delivered asynchronously. dropChunk(n) is asked for every chunk put on the link, counted from 0 over both directions together, and a chunk for which it answers true is lost. A frame that loses a chunk never arrives. Closing either end closes the link: a send after that is NETWORK and nothing more is delivered.

      Parameters

      • o: { dropChunk?: (n: number) => boolean; mtu?: number } = {}

      Returns [PresentationTransport, PresentationTransport]