NodeEvents extension

Typed chain events, pulled or pushed.

on

Properties

eventStream → Stream<ChainEvent>

Available on Node, provided by the NodeEvents extension

Every chain event as it happens. The engine hands each event over synchronously inside the node call that caused it; listeners run on the next microtask, after that call has returned, so a listener may call the node again. Listening redirects events from the buffer behind events to this broadcast stream until the node is disposed, which closes it.
no setter

Methods

events() → List<ChainEvent>

Available on Node, provided by the NodeEvents extension

Chain events buffered since the last call, decoded. Returns nothing while eventStream is live, because events then go to the stream.