Server app for TCP connections.
App is like a chat for connected clients. When new client come in, server create random Id and username for identification. If user write a message and send it (by enter click), message will be sent to all hosts connected to server at this time.
Application use Node.js net module for this kind of connections.
In example below I use netcat tool and treat it as a single client.

nc localhost 8080You can run app on your host by Node.js and npm or use docker-compose. Application will expose on 8080 port.
In root file use commands
npm install
npm startdocker-compose up- Node.js >= 10.0
- npm >= 6.0