algokit_subscriber.types.event_emitter
Attributes
Section titled “Attributes”EventListener | A function that takes a SubscribedTransaction and the event name. |
|---|
Classes
Section titled “Classes”EventEmitter | A simple event emitter that allows for the registration of event listeners and the |
|---|
Module Contents
Section titled “Module Contents”EventListener
Section titled “EventListener”A function that takes a SubscribedTransaction and the event name.
class EventEmitter
Section titled “class EventEmitter”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.
on(event_name: str, listener: EventListener) → EventEmitter
Section titled “on(event_name: str, listener: EventListener) → EventEmitter”Registers a listener for the given event name.
once(event_name: str, listener: EventListener) → EventEmitter
Section titled “once(event_name: str, listener: EventListener) → EventEmitter”Registers a listener for the given event name that will only be called once.
remove_listener(event_name: str, listener: EventListener) → EventEmitter
Section titled “remove_listener(event_name: str, listener: EventListener) → EventEmitter”Removes a listener for the given event name.