Interface: MessageClientOptions
Defined in: packages/messaging/src/sender.ts:102
Options for a MessageClient.
Properties
bus?
readonlyoptionalbus?:InProcessBus
Defined in: packages/messaging/src/sender.ts:108
The in-process bus of this deployable. Omit when no module here is co-hosted.
caller
readonlycaller:Participant
Defined in: packages/messaging/src/sender.ts:104
Who is calling: a module, gateway or bootstrap. Fixed by the caller's wiring.
clock?
readonlyoptionalclock?:Clock
Defined in: packages/messaging/src/sender.ts:110
Defaults to the system clock.
defaultTimeoutMs?
readonlyoptionaldefaultTimeoutMs?:number
Defined in: packages/messaging/src/sender.ts:119
Default wait, in milliseconds. Defaults to 5000.
hosting?
readonlyoptionalhosting?:HostingInput
Defined in: packages/messaging/src/sender.ts:123
The permission table and hosting map; defaults to the real estate.
logger?
readonlyoptionallogger?:MessagingLogger
Defined in: packages/messaging/src/sender.ts:121
Defaults to a logger that discards.
newId?
readonlyoptionalnewId?: () =>string
Defined in: packages/messaging/src/sender.ts:112
Mints message ids; defaults to UUID v7.
Returns
string
proveActor?
readonlyoptionalproveActor?:ProveActor
Defined in: packages/messaging/src/sender.ts:117
The gateway's actor signer. Omitted by every other caller, whose calls carry the handled message's token on when they act for the same actor.
wire?
readonlyoptionalwire?:BrokerWire
Defined in: packages/messaging/src/sender.ts:106
The broker. Omit in a process that only calls in process.