UNPKG

@nestjstools/messaging-nats-extension

Version:

Extension to handle messages and dispatch them over Nats

14 lines 465 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NatsChannel = void 0; const messaging_1 = require("@nestjstools/messaging"); const nats_1 = require("nats"); class NatsChannel extends messaging_1.Channel { client; constructor(config) { super(config); this.client = (0, nats_1.connect)({ servers: config.connectionUris }); } } exports.NatsChannel = NatsChannel; //# sourceMappingURL=nats.channel.js.map