Spaces:
Runtime error
Runtime error
Use relative API/Socket URLs for production
Browse files123456import { io } from 'socket.io-client'const SOCKET_URL = import.meta.env.VITE_SOCKET_URL || 'http://localhost:5000'let socket = nulllet currentToken = null123456import { io } from 'socket.io-client'const SOCKET_URL = import.meta.env.VITE_SOCKET_URL || undefinedlet socket = nulllet currentToken = null
client/src/features/chat/socketClient.js+1-1