Object - nats : Message

Represents a message, which will be pushed from the NATS server to the consumer.

getData

()

returns byte[]

Get the message content.

  • Return Type

    (byte[])
  • the data returned from the message as a 'byte[]'.

getReplyTo

()

returns string?

Get the replyTo subject of the message.

  • Return Type

    (string?)
  • replyTo subject value.

getSubject

()

returns string

Get the subject of the message.

  • Return Type

    (string)
  • the subject that this message was sent to.