You can then subscribe to events like this. You can only specify the event types you are interested in.
1
this.hubConnection.send("subscribe",{
2
transactionAddresses:['all'],
3
delegationAddresses:['all'],
4
originationAddresses:['all'],
5
fromBlockLevel:744190,
6
blockHeaders:true
7
});
Copied!
Note: transactionAddresses, delegationAddresses and originationAdresses are string[].
If your client missed some blocks and you want to continue where you left off, you can optionally specify fromBlockLevel parameter. This will first send all the subscribed information from the blocks starting at the specified block level.
Specifying 'all' will subscribe the client to all transactions/delegations/originations respectively.
Using specific addresses in the arrays will only subscribe to events happening on these addresses.