Skip to content

Commit

Permalink
[FIX] ServiceMsgImpl was missing access to headers or reply subject
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jan 27, 2023
1 parent e5bea9a commit f7f949a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nats-base-client/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f7f949a

Please sign in to comment.