MessageAdapter interface
MessageAdapter is an interface that converts to/from a concrete message type to a MessageContent
Properties
consume | defines how to access the payload and the content type of a message |
produce | defines how to create a message from a payload and a content type |
Property Details
consume
defines how to access the payload and the content type of a message
consume: (message: MessageT) => MessageContent
Property Value
(message: MessageT) => MessageContent
produce
defines how to create a message from a payload and a content type
produce: (messageContent: MessageContent) => MessageT
Property Value
(messageContent: MessageContent) => MessageT