interface Options {
    cpOpts?: ConsumerOptions & ProducerOptions;
    endpoint?: Endpoint;
    notifyInterestLifetime?: number;
    pubAnnouncement?: false | Name;
    pubFwHint?: Name;
    pubPrefix?: Name;
    pubSigner?: Signer;
}

Hierarchy (view full)

Properties

Consumer and producer options.

Remarks

  • .fw may be specified.
  • Most other fields are overridden.
endpoint?: Endpoint

Endpoint for communication.

Deprecated

Specify .cpOpts.

notifyInterestLifetime?: number

InterestLifetime of notify Interests.

pubAnnouncement?: false | Name

Prefix announcement to receive msg Interests.

Default Value

.pubFwHint ?? .pubPrefix

pubFwHint?: Name

Forwarding hint of the local application.

pubPrefix?: Name

Name prefix of the local application.

Default Value

"/localhost" + random-suffix
pubSigner?: Signer

Key to sign publications.

Default Value

digestSigning

Remarks

This key should be trusted to sign objects under pubPrefix. This may overridden on a per-publication basis by PublicationCallback returning Data.