thibauts / node-castv2-client

A Chromecast client based on the new (CASTV2) protocol
MIT License
646 stars 92 forks source link

Use promises instead of callbacks #79

Open relative2 opened 6 years ago

relative2 commented 6 years ago

Promises are better than callbacks because you can use node's await to call the function so no function nesting is needed.

Please review the code before merging :)

This also implements #56 by @BasKiers and #68 by @angelnu