python-snapcast
python-snapcast copied to clipboard
Data reception for notifications
I was wondering why the server class doesn't update when something changes in snapcast. So I investigated a bit further and discovered that the data_received function https://github.com/happyleavesaoc/python-snapcast/blob/434d121ad5ca7a7b742fe5de3d1792c0787afe93/snapcast/control/protocol.py#L38 doesn't get called when data should come in. But when I send data to the server (e.g. change volume) the data_received function is triggered, before data gets send out. And surprise: the received data is exactly the notification I expected a bit earlier. I have absolutly no idea how that can happen and how to fix it - thats beyond my python knowledge. Is this something inherent to my systems or is somebody else having the same issues? What could be done to solve this?