The raw payload bytes.
OptionalreplyThe reply subject, when the publisher set one (request-reply).
The subscription id that received it.
The subject the message was published to.
Decodes the payload as UTF-8 then parses it as JSON.
The expected shape of the decoded value.
The parsed value.
OptionalrespondPublishes a JSON reply to this message's NatsMessage.reply subject.
Only present when the message carries a reply subject (a request); calling it otherwise
throws. The value is JSON.stringify-ed and published as UTF-8.
The value to serialize and publish.
Resolves once the reply PUB frame is written.
A message delivered to a NatsSubscription or returned by a request.
Since
1.0.0