@ -57,8 +57,9 @@ public class ClientHandler implements Runnable {
}
//Method to send a message to the client
public void sendMessage(String message) {
toClientWriter.println(message);
toClientWriter.flush();
toClientWriter.println(message); // Send the message to the client
toClientWriter.flush(); // Flush the stream