FrostReactor
Reactor
The FrostReactor
is a base component for Frost actors that need to communicate over the FrostBus
. It extends the FrostInterface
and provides the essential logic for a reactor to initialize itself and establish a connection with the bus at startup.
Core Functionalities
- Automatic Bus Connection: The primary feature of
FrostReactor
is its automatic connection to theFrostBus
. At startup, it triggers a logical actionconnect_to_bus
, which is handled by the parentFrostInterface
to begin the registration process. - Initialization Logging: It logs an informational message upon initialization, which is helpful for debugging and tracking the lifecycle of reactors.
Code Snippet
This reaction is triggered at startup and is responsible for initiating the connection to the FrostBus
.