Skip to content

algokit_subscriber.types.event_emitter

EventListenerA function that takes a SubscribedTransaction and the event name.
EventEmitterA simple event emitter that allows for the registration of event listeners and the

A function that takes a SubscribedTransaction and the event name.

A simple event emitter that allows for the registration of event listeners and the emission of events to those listeners.

emit(event_name: str, event: Any) → None

Section titled “emit(event_name: str, event: Any) → None”

Emits an event to all listeners registered for the event name.

Registers a listener for the given event name.

Registers a listener for the given event name that will only be called once.

Removes a listener for the given event name.