This commit is contained in:
Michael Wain 2024-07-13 18:46:45 +03:00
parent 8206ee2e45
commit 3994ca7603

View File

@ -181,6 +181,7 @@ public class GameRoom extends Thread {
public void sendMessage(Long userId, WebSocketMessageType type, Object o) { public void sendMessage(Long userId, WebSocketMessageType type, Object o) {
try { try {
log.info("GameRoom-sendMessage: parUserId={}; socksIds={}", userId, socks.keySet());
if (socks.get(userId).isOpen()) if (socks.get(userId).isOpen())
socks.get(userId).sendMessage( socks.get(userId).sendMessage(
new TextMessage( new TextMessage(