MessageEnvelope constructor

MessageEnvelope(String correlationId, String messageType, dynamic message)

Creates a new MessageEnvelope, which adds a correlation id, message id, and a type to the data being sent/received.

  • correlationId (optional) transaction id to trace execution through call chain.
  • messageType a string value that defines the message's type.
  • message the data being sent/received.