freddyb / squeezefox

(DEFUNCT) A remote control for logitech squeezebox servers and players
GNU Affero General Public License v3.0
3 stars 2 forks source link

change from jsonrpc to long-polling #3

Open freddyb opened 10 years ago

freddyb commented 10 years ago

I could tackle #2 by trying to use an HTTP connection that is always pending (keep alive etc.).

obama commented 10 years ago

using anuglarJS $http is not possible because it will use CORS requests.. $http provides a list of all pending requests tough, so if there was a workaround maybe one could try that list? but probably you won't get rid off the CORS stuff so its wasted time.

is limit to one request at once an option? -- probably not since wlan is often unstable and lots requests will get lost?

what will your keepalive thing do? i cant yet follow

freddyb commented 10 years ago

using anuglarJS $http is not possible because it will use CORS requests..

This might be solvable with https://stackoverflow.com/questions/25084877/how-to-add-mozsystem-property-to-http-service-in-angular