In blockchain I have emitted an event which is linked with a particular transaction. I have also subscribed the event in my transaction API. But what do I do after I subscribe the event in the API? I do not know how to generate notifications in my front-end or user application using this subscribed event which was emitted by the blockchain end. Kindly help.
相关问题
- How to add a new Orderer Organization to existing
- How do you generate pool_transactions_genesis and
- chaincode in hyperledger composer vs chaincode in
- Send Raw Transaction Ethereum infura nodejs npm
- Hyperledger fabcar sample fabric showing connect f
相关文章
- When I generate MSP for some organization, I can c
- Does Composer needs an already built Fabric networ
- Hyperledger transaction verification
- Hyperledger Fabric - Error while Instantiating cha
- Hyperledger fabric's ChannelCreationPolicy
- Hyperledger fabric's ChannelCreationPolicy
- what kind of peer types does hyperledger have?
- How to retrieve user information from recent versi
You can use WebSocket to get events occurs on URL by using WebSocket in JS.
Above code will continuous monitor given URL & if any event occurs, then it will call the function
doSocketMessage()
.