Browse Source

refactoring: comments and identation on sendMessage Method

remotes/origin/client-handler
Valentin Spiroski 11 months ago
parent
commit
e15782a293
  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) {
toClientWriter.println(message);
toClientWriter.flush();
toClientWriter.println(message); // Send the message to the client
toClientWriter.flush(); // Flush the stream
}
}
Loading…
Cancel
Save