@eventcatalog/create-eventcatalog 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ var kafka = require('kafka-node'),
2
+ Consumer = kafka.Consumer,
3
+ client = new kafka.KafkaClient(),
4
+ consumer = new Consumer(
5
+ client,
6
+ [
7
+ { topic: 't', partition: 0 },
8
+ { topic: 'AddedItemToCart', partition: 1 },
9
+ ],
10
+ {
11
+ autoCommit: false,
12
+ }
13
+ );
14
+
15
+ consumer.on('message', function (message) {
16
+ console.log(message);
17
+ });
@@ -27,4 +27,6 @@ We have a frontend application that allows users to buy things from our store. T
27
27
 
28
28
  <Mermaid />
29
29
 
30
+ <EventExamples title="How to trigger event" />
31
+
30
32
  <Schema />