There are two parts of this project. Link of server side https://github.com/Duc-ju/Socket-Multi-Thread-Server
Socket packet in Java doesn't support us with thread management so I write some more classes in the project to handle that. I was inspired by socket.io - a library in the other programming language (Javascript). On it, there are many avaiable methods to handle multi-client connect to server.
- Show online users list (update realtime)
- Chatting with global or someone (on general chat box), notice when someone online/offline