Search code examples
javascriptapache-kafkavideo-streamingkafka-consumer-api

Kafka Consumer frontend in javascript html


The kafka producer is sending the frames and I want to consume that frames and whenever that frames is consumed I want to display that frame on html. I've seen I've to use nodejs for consumer to consume the data but how can I evoke or updates the data to the clients or on the frontend side whenever I recieve the data. Do we need to use some sort of websocket or something? Please help me with frontend side of kafka consumer in js.


Solution

  • Used websocket to communicate between consumer and the html as soon as consumer consumes data, html who is subscribe to that topic will take data using websocket