-
Notifications
You must be signed in to change notification settings - Fork 13
core.Consumer
Narciso edited this page Mar 17, 2020
·
1 revision
This is a class to wrap ConsumerGroup from kafka-node
class Consumer extends EventEmitter {
constructor(topics, options){
super();
// logic
}
parse(message){
}
}to over write parser :
core.Consumer.prototype.parse = function(message){
// new logic
// to emit to consumer do : this.emit('message', message);
};