sonor icon indicating copy to clipboard operation
sonor copied to clipboard

Event subscription support

Open dialupdev opened this issue 2 years ago • 2 comments

Hi there. Thanks for building this! Do you have any plans to support event subscriptions in the future? Similar libraries such as https://github.com/svrooij/node-sonos-ts offer this support. More details here: https://sonos-ts.svrooij.io/sonos-device/events.html.

It would be helpful to have the ability to execute code in response to an event rather than constantly polling.

Thanks!

dialupdev avatar Apr 01 '23 03:04 dialupdev

I don't have any plans to implement that because I have no use case for this library anymore (and it only works with old Sonos devices). But if you figure out how to do it and make a PR I'll merge it.

jakobhellermann avatar Apr 01 '23 10:04 jakobhellermann

Thanks for the reply. I'll do some looking into this, but I'm not sure yet if I'll have the time to implement it. Feel free to close this issue in the meantime if you prefer. Thanks!

dialupdev avatar Apr 02 '23 05:04 dialupdev