Hey there! ic-event-hub library is promoted to 0.3.1 enabling event batching - special technique that allows canisters to save a lot of cycles by optimizing data transmission. Come try it out!
I’ve also released several tutorials on how this library could be used:
If you have any question about this library, ask it in this thread.
Have a nice day!
Hey there!
From the first look your code looks okay. You set a 20 seconds delay for event batches to form, it means it waits for at most 20 seconds from the moment you’ve emitted the event to the moment they’ll be sent to listeners.
Also, didn’t you forget to call listener.start_listening()?
nice work! I wonder if it wouldn’t be better to rename the library to ic-events or something like that. The name hub may automatically lead people to think of a central canister.