Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void sendToSession(WebSocketSession session, Object payload) {
synchronized (session) {
session.sendMessage(new TextMessage(jsonPayload));
}
} catch (IOException e) {
log.error("IOException at sendToSession (SessionId: {}).", session.getId(), e);
} catch (IOException | IllegalStateException e) {
log.error("Error at sendToSession (SessionId: {}).", session.getId(), e);
}
}
}
Expand All @@ -41,8 +41,8 @@ public void sendToPlayer(UUID playerId, Object payload) {
synchronized (session) {
session.sendMessage(new TextMessage(jsonPayload));
}
} catch (IOException e) {
log.error("IOException at sendToPlayer (SessionId: {}).", session.getId(), e);
} catch (IOException | IllegalStateException e) {
log.error("Error at sendToPlayer (SessionId: {}).", session.getId(), e);
}
}
}
Expand All @@ -63,8 +63,8 @@ public void broadcastToPlayers(Object payload) {
synchronized (session) {
session.sendMessage(textMessage);
}
} catch (IOException e) {
log.error("IOException at broadcastToPlayers (SessionId: {}).", session.getId(), e);
} catch (IOException | IllegalStateException e) {
log.error("Error at broadcastToPlayers (SessionId: {}).", session.getId(), e);
}
}
}
Expand Down