thelinmichael / spotify-web-api-node

A Node.js wrapper for Spotify's Web API.
http://thelinmichael.github.io/spotify-web-api-node/
MIT License
3.11k stars 499 forks source link

return spotify.transferMyPlayback , how to get completion status #309

Open sdetweil opened 4 years ago

sdetweil commented 4 years ago

I am trying to transfer playback to another device(from pc linux to raspotify on pi4) (Linux Spotify Connect client works great, driven manually) , which takes a long time tocomplete, any other request in the meantime will cancel the transfer

the code sends back a 202 status, accepted... but we need to wait for the 204 (or error) status before clearing the promise..

if not waiting til the request completes, how would i get the secondary return status?

sdetweil commented 4 years ago

i had play set to false, by changing to true, play starts on target, still don't get 204 return code from transfer