6.2.0 • Published 4 years ago
toto-event-consumer v6.2.0
Toto Event Consumer
This is a npm library to be used to consume from a Kafka topic.
When including this through require()
, a new TotoEventConsumer
instance will be automatically created and it will be possible to consume events from kafka.
Typical usage:
var TotoEventConsumer = require('toto-event-consumer');
var eventConsumer = new TotoEventConsumer(microserviceName, topic, (event) => {});
Example:
var TotoEventConsumer = require('toto-event-consumer');
var eventConsumer = new TotoEventConsumer('react-training-nssex', 'trainingSessionsCreated', (event) => {});
NOTE! that the event
that is being passed in the callback has already been parsed and is in JSON format!
6.2.0
4 years ago
6.0.0
5 years ago
5.1.1
5 years ago
5.1.0
5 years ago
5.0.0
5 years ago
4.1.0
5 years ago
4.0.0
5 years ago
3.0.7
5 years ago
3.0.6
5 years ago
3.0.5
5 years ago
3.0.4
5 years ago
3.0.3
5 years ago
3.0.2
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago