-
Notifications
You must be signed in to change notification settings - Fork 13
core.Producer
Narciso edited this page Mar 17, 2020
·
1 revision
This is a class to wrap HighLevelProducer from kafka-node
class Producer extends EventEmitter {
constructor(topics, options){
super();
// logic
}
send(data){
// logic
}
}to over write send ( encoder ) :
core.Producer.prototype.send = function(message){
// new logic
// to send to topic do : this.producer.send(payload, callback);
};