@ccci/micro-server 1.0.149 → 1.0.150

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.
package/dist/index.js CHANGED
@@ -282514,6 +282514,7 @@ class KafkaServer {
282514
282514
  const consumer = new ConsumerClass(clientId, this.kafkaBroker, groupId);
282515
282515
  if (typeof consumer.connect === "function") {
282516
282516
  await consumer.connect();
282517
+ await consumer.handleMessages();
282517
282518
  console.log(`${file} connected with clientId: ${clientId}, groupId: ${groupId}`);
282518
282519
  } else {
282519
282520
  console.warn(`${file} does not have a connect method.`);
@@ -7,6 +7,7 @@ export declare class BaseConsumer {
7
7
  private kafka;
8
8
  private consumer;
9
9
  private groupId;
10
+ private isRunning;
10
11
  /**
11
12
  * @param clientId - The client ID used to identify the consumer instance.
12
13
  * @param brokers - An array of Kafka brokers to connect to.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.149",
3
+ "version": "1.0.150",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",