jamesremuscat / avx

A system for controlling A/V devices such as video switchers via a networkable control device.
4 stars 1 forks source link

Improve client messaging #66

Closed jamesremuscat closed 7 years ago

jamesremuscat commented 7 years ago

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.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.8%) to 85.675% when pulling 9023daef82c134058ee438d3cab8a0583052f2e6 on feature/improve-client-messaging into 9d68294a6fe4525003007203ce11f587380418b5 on develop.