From 97d94c3057de574b1d60491c8a3f0cdff5673b70 Mon Sep 17 00:00:00 2001 From: Paul Kattenborn Date: Wed, 7 Feb 2024 01:05:26 +0100 Subject: [PATCH] remove-Methode --- src/main/java/ChatServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ChatServer.java b/src/main/java/ChatServer.java index 68eafeb..92a4497 100644 --- a/src/main/java/ChatServer.java +++ b/src/main/java/ChatServer.java @@ -52,5 +52,9 @@ public class ChatServer { new ChatServer(3141); } + + public void removeClient(ClientHandler client) { + clients.remove(client); + } } \ No newline at end of file