Skip to content

BaseMessage model

BaseMessage<T> is a generic model represents details of an event stored inside a Message Storage API channel and consists of the following fields:

  • name: string
  • type: TMessageType
  • body: T | undefined
  • context: Record<string, any>

TMessageType

Represents one of the following values: event, command, query or log.

T

T The type of data contained inside a BaseMessage body