In my chaincode I am emitting an event with the following command
ctx.stub.setEvent('sampleEvent', 'somedata');
I want to Listen to this event on the client application using the Node SDK.
I have the following questions,
Do I need to use ChannelEventHub?
If yes, from where do I import/require it?
Which npm module do I need?
I believe, the channelEventHub has the registerChaincodeEvent method, are there any examples on how to use it?