forked from External/mage
added additional logging + keep session alive for most connection errors
This commit is contained in:
parent
0dff1ac743
commit
b9eac322d2
4 changed files with 13 additions and 7 deletions
|
|
@ -74,6 +74,7 @@ public class ChatSession {
|
|||
public void broadcast(String userName, String message, MessageColor color) {
|
||||
Calendar cal = new GregorianCalendar();
|
||||
final String msg = timeFormatter.format(cal.getTime()) + " " + userName + ":" + message;
|
||||
logger.debug("Broadcasting '" + msg + "' for " + chatId);
|
||||
for (UUID sessionId: clients.keySet()) {
|
||||
Session session = SessionManager.getInstance().getSession(sessionId);
|
||||
if (session != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue