Type Alias: BusReceiveHandler
Makaio Framework / bus-core / BusReceiveHandler
Type Alias: BusReceiveHandler
Section titled “Type Alias: BusReceiveHandler”BusReceiveHandler = (
message,context?) =>Promise<void>
Defined in: ../../../packages/bus-core/src/types/transports.ts:104
Handler invoked by transports when a bus message arrives.
The optional receive context is trusted local metadata supplied by the receiving transport. It must not be serialized or relayed to other nodes.
Parameters
Section titled “Parameters”message
Section titled “message”context?
Section titled “context?”TransportReceiveContext
Returns
Section titled “Returns”Promise<void>
Type Composition
Section titled “Type Composition”BusReceiveHandler(message: BusMessage, context?: TransportReceiveContext) => Promise<void>