UNPKG

538 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.NatsContext = void 0;
4const base_rpc_context_1 = require("./base-rpc.context");
5class NatsContext extends base_rpc_context_1.BaseRpcContext {
6 constructor(args) {
7 super(args);
8 }
9 /**
10 * Returns the name of the subject.
11 */
12 getSubject() {
13 return this.args[0];
14 }
15 /**
16 * Returns message headers (if exist).
17 */
18 getHeaders() {
19 return this.args[1];
20 }
21}
22exports.NatsContext = NatsContext;