Listens on ws port 7114 and will echo back whatever is sent to the server.
Listens on wss port 7114 and will echo back whatever is sent to the server.
- docker compose
- wscat
To start the Docker Compose stack defined in the compose.yaml file, use:
docker compose up -dnpm install wscat -gwscat -c ws://localhost:7114/ -s echoType a Hello, world message and press enter.
output:
Connected (press CTRL+C to quit)
> Hello, world
< Hello, world
wscat -c wss://localhost:7114/ --ca test-ca.crt -s echoType a Hello, world message and press enter.
output:
Connected (press CTRL+C to quit)
> Hello, world
< Hello, world
To remove any resources created by the Docker Compose stack, use:
docker compose down