From 46231b97286c5ea7a4ad7d9979305b8d01c96400 Mon Sep 17 00:00:00 2001 From: Valentin Spiroski Date: Sun, 4 Feb 2024 23:33:12 +0100 Subject: [PATCH] sendMessage Method --- src/main/java/ClientHandler.java | 4 ++++ 1 file changed, 4 insertions(+) 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(); + } }