registerChaincodeEvent(ccid, eventCallBack, errorCallBack, options) to listen to events from my blockchain. The problem with this is that the
eventCallBack function is not able to access variables or functions outside it. So, how could we pass the event received outside this callback function? I need to use the received event in server sent event (sse) which I have in another node.js application.
Thanks in advance.