feat: websockets & realtime updates

This commit is contained in:
Mat12143 2025-08-02 05:04:30 +02:00
parent 2a167ba8ad
commit 0bf67061f8
4 changed files with 41 additions and 46 deletions

View file

@ -60,10 +60,8 @@ export const triggerPlayNext = async function (roomId: string): Promise<[FetchEr
let songs: Song[] = []
if (json["ended"]) {
json["queue"].forEach(async (i: any) => {
songs.push(await parseSong(i))
})
}
json["queue"].forEach(async (i: any) => {
songs.push(await parseSong(i))
})
return [null, songs, json["index"]]
}