Clients - nats : StreamingMessage

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

Remote Methods

ack

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

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)
  • The subject that this message was sent to.