diff --git a/src/main/java/ClientHandler.java b/src/main/java/ClientHandler.java index fe885bd..c59f1ed 100644 --- a/src/main/java/ClientHandler.java +++ b/src/main/java/ClientHandler.java @@ -42,5 +42,9 @@ public class ClientHandler implements Runnable { } } + public void sendMessage(String message) { + toClientWriter.println(message); + toClientWriter.flush(); + } }