Browse Source

refactoring: comments and identation on sendMessage Method

remotes/origin/feature/client/make-input-field-buttons-interactive
Valentin Spiroski 11 months ago
parent
commit
33b7f9e3b9
  1. 5
      src/main/java/ClientHandler.java

5
src/main/java/ClientHandler.java

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