TCP chat on golang
Open terminal and enter next command to run server
go run cmd/main.go --port=8080
and you can open port
sudo ufw allow 8080/tcp
and share your ip address with others, so they can connect to the chat using nc
nc 127.0.0.1 8080
or you can test it locally, just open another terminal and enter next command
nc localhost 8080
TCP-chat implements the functionality of net-cat, the server runs on a port and accepts client connections to add them to the chat, and also allows you to exchange messages.
- Server log history
- Chat history
- Graceful shut down
- Concurrency