UNPKG

@biorate/rdkafka

Version:
15 lines 574 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RDKafkaProducerStreamConnection = void 0; const node_rdkafka_1 = require("node-rdkafka"); class RDKafkaProducerStreamConnection { constructor(config) { this.config = config; this.stream = node_rdkafka_1.Producer.createWriteStream(config.global, config.topic, config.stream); } write(buffer) { return this.stream.write(buffer); } } exports.RDKafkaProducerStreamConnection = RDKafkaProducerStreamConnection; //# sourceMappingURL=producer-stream.js.map