From f7f949a86246cc1f36812a3542cdbdf70680fc49 Mon Sep 17 00:00:00 2001 From: aricart Date: Fri, 27 Jan 2023 14:27:57 -0400 Subject: [PATCH] [FIX] ServiceMsgImpl was missing access to headers or reply subject --- nats-base-client/service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nats-base-client/service.ts b/nats-base-client/service.ts index c51d01fc..cd81473e 100644 --- a/nats-base-client/service.ts +++ b/nats-base-client/service.ts @@ -106,6 +106,14 @@ export class ServiceMsgImpl implements ServiceMsg { return this.msg.subject; } + get reply(): string { + return this.msg.reply || ""; + } + + get headers(): MsgHdrs | undefined { + return this.msg.headers; + } + respond(data?: Uint8Array, opts?: PublishOptions): boolean { return this.msg.respond(data, opts); }