From 1da0f046d44176cf85dd1fb58a7be35ee46c6172 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(); + } }