Implement Phase 3A playlist management

This commit is contained in:
Media
2026-08-16 20:34:36 -05:00
parent 722c6cf77d
commit e2ecdc97e2
15 changed files with 2955 additions and 7 deletions
+6 -1
View File
@@ -53,13 +53,18 @@ function createRuntime({
throw error;
}
let app;
let io = null;
try {
app = createApp({
config,
database,
imageProcessor,
lifecycle,
logger,
migrations,
onPlaylistsChanged(event) {
io?.emit("playlists:changed", event);
},
storage,
});
} catch (error) {
@@ -68,7 +73,7 @@ function createRuntime({
throw error;
}
const httpServer = http.createServer(app);
const io = new SocketServer(httpServer, {
io = new SocketServer(httpServer, {
serveClient: false,
});