jamtools / rpi-deploy

0 stars 0 forks source link

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

Open mickmister opened 2 months ago

mickmister commented 2 months ago

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.