diff --git a/src/main/java/ChatServer.java b/src/main/java/ChatServer.java index c647fe6..3ece54e 100644 --- a/src/main/java/ChatServer.java +++ b/src/main/java/ChatServer.java @@ -29,7 +29,10 @@ public class ChatServer { } - public void broadcastMessage(String s) { + public void broadcastMessage(String message) { + for (ClientHandler client : clients) { + client.sendMessage(message); + } }