Skip to content

Commit

Permalink
Try with http not ws
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288543 committed Apr 7, 2024
1 parent 54003a0 commit 14b75cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/MultiplayerRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 14b75cf

Please sign in to comment.