fix: websockets and vite
This commit is contained in:
parent
426a2706d8
commit
419fde1a10
4 changed files with 17 additions and 17 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue