انتقل إلى المحتوى الرئيسي

Interface: EventPublisherOptions

Defined in: packages/messaging/src/events.ts:56

Options for an EventPublisher.

Properties​

ackTimeoutMs?​

readonly optional ackTimeoutMs?: number

Defined in: packages/messaging/src/events.ts:68

How long to wait for the stream's acknowledgement, in milliseconds. Defaults to 5000.


clock?​

readonly optional clock?: Clock

Defined in: packages/messaging/src/events.ts:64

Defaults to the system clock.


hosting?​

readonly optional hosting?: HostingInput

Defined in: packages/messaging/src/events.ts:70

The permission table; defaults to the real estate.


keys​

readonly keys: readonly EventKey[]

Defined in: packages/messaging/src/events.ts:62

Every event key the module will publish. Checked at construction.


module​

readonly module: "identity" | "audit" | "governance" | "trust" | "issuance" | "verification" | "vault" | "signing" | "e-services" | "provisioning"

Defined in: packages/messaging/src/events.ts:60

The publishing module; the subject's module token.


newId?​

readonly optional newId?: () => string

Defined in: packages/messaging/src/events.ts:66

Mints message ids; defaults to UUID v7.

Returns​

string


wire​

readonly wire: BrokerWire

Defined in: packages/messaging/src/events.ts:58

The broker. Events always travel on it, between co-hosted modules too (chapter 02).