Produce POST requests to Apache Kafka topic and trigger the Content-Transmitter.
Install via yarn
yarn install knamp-transmitter-bridge
Then configure it and use it
import TransmitterBridge from "knamp-transmitter-bridge";
(async () => {
const server = await TransmitterBridge({
clientName: "transmitter-client",
groupId: "transmitter-group",
produceTo: "transmitter-consume",
webserver: {
port: 8844
}
});
server.on("error", (error) => {
console.error(error);
});
server.on("request", data => {
console.log(data);
});
})();
- Sinek, consuming and producing messages to and from Apache Kafka
This project is under MIT.