Initial commit

This commit is contained in:
2026-03-13 16:01:39 -04:00
commit 27e8c9a6fe
22 changed files with 8681 additions and 0 deletions

14
client/src/socket.js Normal file
View File

@@ -0,0 +1,14 @@
import { io } from 'socket.io-client';
const SERVER_URL = window.location.hostname === 'localhost'
? 'http://localhost:3001'
: `http://${window.location.hostname}:3001`;
const socket = io(SERVER_URL, {
autoConnect: false,
reconnection: true,
reconnectionAttempts: 10,
reconnectionDelay: 1000,
});
export default socket;