tulios / kafkajs

A modern Apache Kafka client for node.js

Home Page:https://kafka.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grep functionality inside consumer.subscribe

mac4manu opened this issue · comments

commented

Is your feature request related to a problem? Please describe.

I used below function to subscribe the topic-D, But didn't get intended result. Some values were missing in that response.

await consumer.subscribe({ topics: ['topic-D'], fromBeginning: true })

Then I tried to use kcat command on terminal to same broker with topic and a grep command 'expected string', then It worked

Describe the solution you'd like
It would helpful if we can extend the .subscribe function to accept parameter like grep

Additional context
I am following below page
https://kafka.js.org/docs/consuming