Skip to content

🎧 Your Personal Streaming Service

Keepalive must return an ID to be used with `dataProvider.getOne`

Deluan6e73c23704b2
diff --git a/server/app/app.go b/server/app/app.go
index 3df3a9ee1..82f047197 100644
--- a/server/app/app.go
+++ b/server/app/app.go
@@ -69,7 +69,9 @@ func (app *Router) routes(path string) http.Handler {
app.addPlaylistTrackRoute(r)
// Keepalive endpoint to be used to keep the session valid (ex: while playing songs)
- r.Get("/keepalive/*", func(w http.ResponseWriter, r *http.Request) { _, _ = w.Write([]byte(`{"response":"ok"}`)) })
+ r.Get("/keepalive/*", func(w http.ResponseWriter, r *http.Request) {
+ _, _ = w.Write([]byte(`{"response":"ok", "id":"keepalive"}`))
+ })
if conf.Server.DevActivityPanel {
r.Handle("/events", app.broker)