bencevans / node-sonos

🔈 Sonos Media Player Interface/Client
https://www.npmjs.com/package/sonos
MIT License
704 stars 147 forks source link

Support for new Websocket (LAN) APIs #545

Open paolotremadio opened 1 year ago

paolotremadio commented 1 year ago

Hello!

It looks like Sonos have finally released their new WS based local APIs: https://devdocs.sonos.com/docs/connect-lan

The documentation is a bit messy at the moment but it seems to support all the methods described here: https://devdocs.sonos.com/reference/about-control-api

Player discovery works with mDNS as well as https://devdocs.sonos.com/docs/discover-lan

Question is: is there any interest in switching the node-sonos library to this new API? I know very well it is almost a complete rewrite and it will potentially change the javascript APIs. It would simplify the code significantly because the new Sonos API is websocket & JSON based which means a single channel for both eventing and sending commands.

"No" is an acceptable answer :) It's a big task.