This commit is contained in:
legop3
2025-11-15 04:13:18 -05:00
parent d64cfe2d46
commit 85d0c9cfd3
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ import { io } from "socket.io-client";
console.log('socket.io client loaded')
const serverUrl = import.meta.env.VITE_ROVERD_URL ?? "http://localhost:8080";
export const socket = io(serverUrl, {
export const socket = io({
// export const socket = io(serverUrl, {
transports: ["websocket"], // skip polling if your backend supports it
query: {
role: "user"