happyleavesaoc/python-snapcast

Best way to get server update in realtime

de666 opened this issue · 1 comments

de666 commented

How to get realtime server updates?
There are only callbacks for connection, disconnection and new_client_update.
If I want to handle all the server updates (for example stream status update), which is the best way to do it?

Add callbacks that correspond to each of the various updates. Probably could use a refactor of the callback setting at that point, maybe a signature like set_callback(self, event, func) PR welcome!