[base-controller] Create MessengerClient
superclass for BaseController
and stateless non-controllers
#4445
Labels
MessengerClient
superclass for BaseController
and stateless non-controllers
#4445
Explanation
Some of our classes that were previously labeled as controllers have empty state, making them non-controllers.
As part of Wallet Framework team's Q2 2024 OKRs (O3KR1), we're currently in the process of upgrading these non-controllers to use the messenger pattern without inheriting from
BaseController
.To minimize redundant code, the reused portion of
BaseController
should be extracted into a newMessagingEndpoint
(tentative) class that serves as a parent class toBaseController
and all stateless non-controllers, and includes the logic a class needs in order to accept and use a messaging system.We should ensure that bothMessengerConsumer
andBaseController
are compatible as base classes for the polling-controller mixins.References
BaseController
#4432The text was updated successfully, but these errors were encountered: