"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const nats_1 = require("nats");
function responder() {
    return tslib_1.__awaiter(this, void 0, void 0, function* () {
        const nc = yield (0, nats_1.connect)({ servers: 'nats://localhost:4222' });
        nc.subscribe('status.gen-raw-input', {
            callback: (error, msg) => {
                const response = `Hello, ${msg.data}!`;
                nc.publish(msg.reply, response);
            }
        });
    });
}
responder().catch((err) => {
    console.error(err);
});
//# sourceMappingURL=sample-listener.js.map