pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function router

    • Creates an empty routing table for a node.

      Parameters

      • address: number

        The address of this node, which is what a routing decision recognises as a local delivery.

      • Optionalcapacity: number

        How many routes to make room for, defaulting to DEFAULT_CAPACITY.

      Returns Router

      The routing table, ready to learn from the traffic the node hears.