Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocketClient.js:16 WebSocket connection to 'ws://localhost:3000/ws' failed: #21

Open
hazartilirot opened this issue Jan 8, 2022 · 0 comments

Comments

@hazartilirot
Copy link

Running a bunch locally as a development stage will get you to an error in a client

WebSocketClient.js:16 WebSocket connection to 'ws://localhost:3000/ws' failed:

Stephen had a slightly different error which he tackled with NGNIX config. It won't be your case.

Basically, add the environment variable to the client service in your docker-compose-dev.yml

    environment:
      - WDS_SOCKET_PORT=0

If you're going to run it, execute to commands, the first one would wipe out your all unnecessary containers and images.

docker system prune -a
docker-compose -f docker-compose-dev.yml up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant