Skip to content

Commit 7ebf19c

Browse files
committed
AWS
1 parent 46e94a2 commit 7ebf19c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

PintudosFront/src/components/Juego/Juego.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Juego() {
2525
}
2626

2727
try {
28-
const response = await axios.get(`http://localhost:8080/game/${roomId}/secret-word`);
28+
const response = await axios.get(`https://api.arswpintudos.com//game/${roomId}/secret-word`);
2929
setSecretWord(response.data);
3030
} catch (error) {
3131
console.error("Error al obtener la palabra secreta:", error);
@@ -40,7 +40,7 @@ export default function Juego() {
4040
}
4141

4242
try {
43-
const response = await axios.get(`http://localhost:8080/game/${roomId}/clue`);
43+
const response = await axios.get(`https://api.arswpintudos.com//game/${roomId}/clue`);
4444
setClue(response.data); // Mostrar la pista obtenida desde el backend
4545
setHasClue(true); // Marcar que un jugador ya obtuvo la pista
4646
} catch (error) {

PintudosFront/src/useWebSocket.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({
3030
const [connected, setConnected] = useState(false);
3131
useEffect(() => {
3232
// Paso 1: Realizar la solicitud previa para establecer sesión
33-
fetch("http://localhost:8080/game?continue", {
33+
fetch("https://api.arswpintudos.com//game?continue", {
3434
method: "GET",
3535
credentials: "include", // Importante: incluir cookies
3636
})
@@ -45,7 +45,7 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({
4545
});
4646
function initializeWebSocket() {
4747
const client = new Client({
48-
webSocketFactory: () => new SockJS("http://localhost:8080/game"),
48+
webSocketFactory: () => new SockJS("https://api.arswpintudos.com//game"),
4949
reconnectDelay: 5000,
5050
heartbeatIncoming: 4000,
5151
heartbeatOutgoing: 4000,

0 commit comments

Comments
 (0)