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

    Function broadcast

    • Builds a frame addressed to every node.

      Parameters

      • src: number

        The address of this node.

      • id: number

        The sequence number identifying this packet from this source.

      • payload: Uint8Array

        The bytes to carry.

      • OptionalhopLimit: number

        How many relays the frame may take, defaulting to DEFAULT_HOP_LIMIT.

      Returns mesh.MeshFrame

      The frame, with the bytes to transmit on its bytes field.

      If the payload is larger than MAX_PAYLOAD.