Hey guys i need a alogrithm to find the users online for my chat application.my chat app is based on socket communication and the server stores the users in hashmap.
I need to display the list of online users to client when he gets online.