Optional
headersPossible headers that may have been set by the server or the publisher.
Optional
replyA possible subject where the recipient may publish a reply (in the cases where the message represents a request).
The subscription ID where the message was dispatched.
The subject the message was sent to
Convenience method to parse the message payload as JSON. This method will throw an exception if there's a parsing error;
Optional
reviver: ReviverFna reviver function
Convenience to publish a response to the reply subject in the
message - this is the same as doing nc.publish(msg.reply, ...)
.
Optional
payload: PayloadOptional
opts: PublishOptionsOptional
data: PayloadOptional
opts: PublishOptionsConvenience method to parse the message payload as string. This method may throw an exception if there's a conversion error
The message's data (or payload)