forked from External/mage
added client/server ping + remove inactive connections from server
This commit is contained in:
parent
774d56dd6b
commit
ab599dd335
7 changed files with 105 additions and 20 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue