4

I am a beginner in Microsoft event hub. I am successfully sending data to eventHub using node js(refrence).

How to receive and display the data from event hub? Any idea?

Laur Ivan
  • 4,117
  • 3
  • 38
  • 62
Abdul Manaf
  • 4,933
  • 8
  • 51
  • 95

2 Answers2

3

You cannot receive messages using the Azure Event Hub REST APÎ. You can only receive using AMQP 1.0.

Your best option is to look for an AMQP npm package. A quick search also lead me to this: https://github.com/noodlefrenzy/node-amqp10

CSharpRocks
  • 6,791
  • 1
  • 21
  • 27
  • 1
    Hey, I'm the (co-)author of https://github.com/noodlefrenzy/node-amqp10 and I use it to speak to Event Hubs all the time (send and receive). There's an example in the examples/ directory, and we just released 2.1.0, so we're actively maintaining it. – Mike Lanzetta Nov 05 '15 at 00:41
0

You can also use the official JavaScript SDK for Azure Event Hubs, @azure/event-hubs.

Ramya Rao
  • 111
  • 5