Thi is a very simple chat server that listen on TCP port 10000 for clients.
The chat protocol is very simple, clients connect with "telnet" and write single lines of text. On each new line of text, the server will broadcast that line to all other connected clients.
This server is written in GOLang, so it has to be installed on your system (at least Go version 1.12.x).
To install dependencies:
go get -u
To run this server
go run main.go
If you prefer using Docker you can use the image torre76/gochat:latest:
docker run -p 10000:10000 torre76/gochat:latest
if you want to use it on foreground mode or:
docker run -d -p 10000:10000 torre76/gochat:latest
if you prefer a daemon mode.