Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Plug website #51

Open
ylt opened this issue Jul 14, 2015 · 0 comments
Open

Proxy Plug website #51

ylt opened this issue Jul 14, 2015 · 0 comments

Comments

@ylt
Copy link
Member

ylt commented Jul 14, 2015

This a short cut to getting basic management before #50 is implemented. Playlist management is currently not possible, and the best interface is plug itself.

An easy solution for this would be to proxy plug itself. All API calls are using relative URL's except for the websocket which is given in page itself (which can be modified while serving it).

The main complexity is that Wallace is using an API which abstracts away the underlying protocol.
We need to catch all the http requests and the websocket requests and call the relevant methods on the Plugged API.
Anything not handled, we can just pass on to the web API directly by using the cookie jar - this however runs the risk of Plugged not being synchronised with the current state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant