interface Options {
    cpOpts?: ConsumerOptions & ProducerOptions;
    describe?: string;
    filterPubs?: FilterPubsCallback;
    isExpired?: IsExpiredCallback;
    maxClockSkew?: number;
    maxPubLifetime?: number;
    modifyPublication?: ModifyPublicationCallback;
    p: SyncpsPubsub.Parameters;
    pubSigner?: Signer;
    pubVerifier?: Verifier;
    syncDataPubSize?: number;
    syncInterestLifetime?: number;
    syncPrefix: Name;
    syncSigner?: Signer;
    syncVerifier?: Verifier;
}

Properties

Consumer and producer options.

  • .fw may be specified.
  • Most other fields are overridden.
describe?: string

Description for debugging purpose.

SyncpsPubsub + syncPrefix

filterPubs?: FilterPubsCallback

Callback to decide what publications to be included in a response.

  • Respond nothing if there's no own publication.
  • Otherwise, prioritize own publications over others, and prioritize later timestamp.
isExpired?: IsExpiredCallback

Callback to determine if a publication is expired.

The last component is interpreted as TimestampNameComponent. If it is not a TimestampNameComponent, the publication is seen as expired.

maxClockSkew?: number

Maximum clock skew, for calculating timers.

1000

maxPubLifetime?: number

Publication lifetime.

1000

modifyPublication?: ModifyPublicationCallback

Callback to modify publication before it's signed.

appending a TimestampNameComponent to the name

Algorithm parameters.

They must be the same on every peer.

pubSigner?: Signer

Signer of publications.

digestSigning

pubVerifier?: Verifier

Verifier of publications.

no verification

syncDataPubSize?: number

Advisory maximum size for publications included in a sync reply Data packet.

1300

syncInterestLifetime?: number

Sync Interest lifetime in milliseconds.

4000

syncPrefix: Name

Sync group prefix.

syncSigner?: Signer

Signer of sync reply Data packets.

digestSigning

syncVerifier?: Verifier

Verifier of sync reply Data packets.

no verification