From 14b75cf9b2a27101bcb78a9324548810ac4b79ad Mon Sep 17 00:00:00 2001 From: uo288543 Date: Sun, 7 Apr 2024 23:13:08 +0200 Subject: [PATCH] Try with http not ws --- .github/workflows/release.yml | 2 +- docker-compose.yml | 2 +- webapp/src/pages/MultiplayerRoom.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29066b17..eaf4d690 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -103,7 +103,7 @@ jobs: uses: elgohr/Publish-Docker-Github-Action@v5 env: API_URI: http://${{ secrets.DEPLOY_HOST }}:8000 - ONLINE_URI: ws://${{ secrets.DEPLOY_HOST }}:5010 + ONLINE_URI: http://${{ secrets.DEPLOY_HOST }}:5010 with: name: arquisoft/wiq_es04a/webapp username: ${{ github.actor }} diff --git a/docker-compose.yml b/docker-compose.yml index c616f277..edb0ac1b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -84,7 +84,7 @@ services: - mynetwork environment: REACT_APP_API_ENDPOINT: http://gatewayservice:8000 - MULTIPLAYER_ENDPOINT: ws://multiplayer:5010 + MULTIPLAYER_ENDPOINT: http://multiplayer:5010 multiplayer: container_name: multiplayer diff --git a/webapp/src/pages/MultiplayerRoom.js b/webapp/src/pages/MultiplayerRoom.js index 6128058c..dc12185f 100644 --- a/webapp/src/pages/MultiplayerRoom.js +++ b/webapp/src/pages/MultiplayerRoom.js @@ -5,7 +5,7 @@ import { useContext } from 'react'; import { SessionContext } from '../SessionContext'; import { useNavigate } from 'react-router-dom'; -const socketEndpoint = process.env.MULTIPLAYER_ENDPOINT || 'ws://localhost:5010'; +const socketEndpoint = process.env.MULTIPLAYER_ENDPOINT || 'http://localhost:5010'; //const socketEndpoint = process.env.MULTIPLAYER_ENDPOINT || 'ws://20.19.89.97/:5010'; do not work const MultiplayerRoom = () => {