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

Properties

Consumer and producer options.

Remarks

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

Description for debugging purpose.

Default Value

SyncpsPubsub + syncPrefix
endpoint?: Endpoint

Endpoint for communication.

Deprecated

Specify .cpOpts.

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

Default Value

- Respond nothing if there's no own publication.
- Otherwise, prioritize own publications over others, and prioritize later timestamp.

Callback to determine if a publication is expired.

Default Value

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.

Default Value

1000
maxPubLifetime?: number

Publication lifetime.

Default Value

1000

Callback to modify publication before it's signed.

Default Value

appending a TimestampNameComponent to the name

Algorithm parameters.

Remarks

They must be the same on every peer.

pubSigner?: Signer

Signer of publications.

Default Value

digestSigning
pubVerifier?: Verifier

Verifier of publications.

Default Value

no verification
syncDataPubSize?: number

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

Default Value

1300
syncInterestLifetime?: number

Sync Interest lifetime in milliseconds.

Default Value

4000
syncPrefix: Name

Sync group prefix.

syncSigner?: Signer

Signer of sync reply Data packets.

Default Value

digestSigning
syncVerifier?: Verifier

Verifier of sync reply Data packets.

Default Value

no verification