public socket

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-11-13 20:52:36 +01:00
padre e9156e6c72
commit 8234530ed7

Ver fichero

@@ -43,7 +43,8 @@ export const useGameStore = create<GameStore>((set, get) => ({
pendingPlayerName: null,
initSocket: () => {
const socket = io('http://localhost:3000', {
const socketUrl = process.env.NEXT_PUBLIC_SOCKET_URL || 'http://localhost:3000';
const socket = io(socketUrl, {
transports: ['websocket', 'polling'],
});