fix: websockets and vite

This commit is contained in:
Mat12143 2025-08-02 05:16:37 +02:00
parent 426a2706d8
commit 419fde1a10
4 changed files with 17 additions and 17 deletions

View file

@ -22,7 +22,6 @@
onMount(async () => {
// Join the room
socket = io("/", { path: "/ws", transports: ["websocket"] })
let sugg, queue, index
;[returnError] = await joinRoom(data.roomId)
@ -42,6 +41,7 @@
playingIndex = index
// Setup websocket connection
socket = io("/", { path: "/ws", transports: ["websocket"] })
await socket.emitWithAck("join_room", { id: data.roomId })
socket.on("queue_update", async (d) => {