added client/server ping + remove inactive connections from server

This commit is contained in:
BetaSteward 2011-05-11 22:08:11 -04:00
parent 774d56dd6b
commit ab599dd335
7 changed files with 105 additions and 20 deletions

View file

@ -70,7 +70,7 @@ public class ChatManager {
chatSessions.get(chatId).broadcast(userName, message, color);
}
void removeSession(UUID sessionId) {
public void removeSession(UUID sessionId) {
for (ChatSession chat: chatSessions.values()) {
chat.kill(sessionId);
}