FIX - Deploy bug in frontend

This commit is contained in:
Manik Maity
2024-11-13 21:22:46 +05:30
parent 3cc060b713
commit a1319b8b2b

View File

@@ -27,7 +27,7 @@ function VotingPage() {
const [socket, setSocket] = useState(null);
useEffect(() => {
const s = io("http://localhost:3000");
const s = io("https://livepoll-anjx.onrender.com");
setSocket(s);
s.on("connect", () => {