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

Provide a way to notify UI that there is an update and the user should refresh #12

Open
mickmister opened this issue Jun 10, 2024 · 0 comments

Comments

@mickmister
Copy link
Member

This can work over web sockets. We will give developers a small snippet of js to run in their client, which will connect a ws to some service on the pi, possibly the app hosting this client. A unique deployment hash will be given to the running app during compilation and runtime, so the app can use this to distinguish the latest deployment as a new one. This hash should be passed down the websocket, and also provided on websocket reconnect. Then the js we suggest to use shows a banner when a new hash was received through the ws.

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

No branches or pull requests

1 participant