This PR fixes #49 by adding a more structured and generic mechanism for inter-client and controller-to-client communication.
Clients may now override handleMessage in order to receive broadcasts sent via the controller, either from devices (e.g. video switcher changed state) or other clients (e.g. as part of a macro sequence).
The old API of callAllClients has been removed, along with the implementation-specific power-dialog-related functions. If your client relies on these functions, you will need to rewrite it to use the new broadcast method.
Coverage increased (+0.8%) to 85.675% when pulling 9023daef82c134058ee438d3cab8a0583052f2e6 on feature/improve-client-messaging into 9d68294a6fe4525003007203ce11f587380418b5 on develop.
This PR fixes #49 by adding a more structured and generic mechanism for inter-client and controller-to-client communication.
Clients may now override
handleMessage
in order to receive broadcasts sent via the controller, either from devices (e.g. video switcher changed state) or other clients (e.g. as part of a macro sequence).The old API of
callAllClients
has been removed, along with the implementation-specific power-dialog-related functions. If your client relies on these functions, you will need to rewrite it to use the newbroadcast
method.