Object - nats : Message

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

getData

()

returns string

Get message content.

  • Return Type

    (string)
  • message content as a 'string' liternal.

ack

()

returns error?

Acknowleges to a given message.

  • Return Type

    (error?)
  • an error if the acknowledgment fails.