Implement Phase 3A playlist management
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user