ShardMessage
Defined in: packages/sharding/src/bus.ts:4
Message envelope exchanged between Lunibee shards.
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”data:
T
Defined in: packages/sharding/src/bus.ts:12
Message payload.
expectsReply?
Section titled “expectsReply?”
optionalexpectsReply?:boolean
Defined in: packages/sharding/src/bus.ts:16
Set on requests that expect a reply (see ShardBus.request).
id:
string
Defined in: packages/sharding/src/bus.ts:14
Unique message ID.
source
Section titled “source”source:
number
Defined in: packages/sharding/src/bus.ts:6
Sending shard ID.
target
Section titled “target”target:
number|null
Defined in: packages/sharding/src/bus.ts:8
Target shard ID, or null for broadcast.
type:
string
Defined in: packages/sharding/src/bus.ts:10
Application message type.