Sheraff / soft-serve-tunes

Self hosted music server on raspberry pi
7 stars 0 forks source link

Active client WS for offline server detection #20

Closed Sheraff closed 1 year ago

Sheraff commented 1 year ago

Because this project is aimed at being hosted on a home-network based raspberry pi, it isn't only the client that can be offline, but the server too.

For better PWA behavior, we should be able to detect when the server is down and switch to offline mode (only show available tracks). For this purpose, a web socket might be ideal since we already have one running at all times.