@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 +1 -0
- package/dist/utils/BaseConsumer.d.ts +1 -0
- package/package.json +1 -1
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.`);
|