java version added a whosOnline() function for client