This is a project to teach some features of Golang to friends.
You should run the server first to enbale clients connecting to it.
Run command go run cmd/server/main.go
in the root of project.
Note: Make sure you have Go language installed on your machine. How to install Go
After running the server, it should be available to accept new connections (ie. seeing the log like server started listening on port...
).
To create a new client run the command go run cmd/client/main.go
.
Run multiple clients and write a message in one of them, then hit enter and you should be able to see the message logged with client id in all the other clients.
- handle clients that are disconnected
- implement chat rooms
- implement private (1to1) chat
- make logs more beatiful (understandable)
- hadle messages longer then the buffer size (100byte)