https://github.com/kappa-lab/very-simple-chat
- Simple & Primitive multi client communication system.
- e.g. chat system
- for learning
seq03.mp4
- Broadcast message
- Unicast message
- Multi Room
- Error Handlling
- Ping/Pong based Alive monitoring
|----Header(1byte)-----|-----Body(max255byte)-----|
| BodyLength | Body |
|______________________|__________________________|
git clone git@github.com:kappa-lab/very-simple-chat.git
cd very-simple-chat
go run .
- Open new terminal (Establish Client Window)
cd very-simple-chat/client
go run .
Input command into Client Window.
tartget:255, send all clients.
{"target":255, "message":"hello evrybody"}
tartget:n(<255), send single clinet.
{"target":1, "message":"hello 1"}
Ctrl+C