UNPKG

@yepmind/nats-rx-client

Version:
20 lines 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NatsEventMessage = void 0; const nats_1 = require("nats"); class NatsEventMessage { constructor(message) { this.message = message; this.jsonCodec = (0, nats_1.JSONCodec)(); } get data() { var _a; return (_a = this.message) === null || _a === void 0 ? void 0 : _a.json(); } get subject() { var _a; return (_a = this.message) === null || _a === void 0 ? void 0 : _a.subject; } } exports.NatsEventMessage = NatsEventMessage; //# sourceMappingURL=nats-event-message.js.map