Producer that serves a segmented object.


  • Server


close: (() => void)

Type declaration

    • (): void
    • Stop the producer.

      Returns void

prefix: Name

Data prefix excluding segment number.

processInterest: ((interest) => Promise<undefined | Data>)

Type declaration

    • (interest): Promise<undefined | Data>
    • Process an Interest.

      The producer handler is already attached to the Endpoint and will react to incoming Interests. It's usually unnecessary to call this function manually.


      • interest: Interest

      Returns Promise<undefined | Data>

Generated using TypeDoc