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 = () => {