Skip to content

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

Description

@hazartilirot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions