Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 816 Bytes

README.md

File metadata and controls

56 lines (37 loc) · 816 Bytes

tcp.reflect

Listens on tcp port 12345 and will echo back whatever is sent to the server, broadcasting to all clients.

Requirements

  • nc
  • docker compose

Setup

To start the Docker Compose stack defined in the compose.yaml file, use:

docker compose up -d

Verify behavior

Connect each client first, then send Hello, one from first client, then send Hello, two from second client.

nc localhost 12345

Type a Hello, one message and press enter.

output:

Hello, one
Hello, one
Hello, two
nc localhost 12345

Type a Hello, two message and press enter.

output:

Hello, one
Hello, two
Hello, two

Teardown

To remove any resources created by the Docker Compose stack, use:

docker compose down