Clients - nats : StreamingMessage

Represents the message a NATS Streaming Server sends to a subscription service.

Constructor

__init

(string subject, byte content)

  • subject string
  • content byte

Remote Methods

Methods

ack

()

returns Error?

Acknowledge the NATS Streaming server upon the receipt of the message.

  • Return Type

    (Error?)
  • Returns () if the acknowledgment completes successfully or an error.

getData

()

returns byte

Get the message content.

  • Return Type

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

getSubject

()

returns string

Get the subject.

  • Return Type

    (string)
  • subject value.