code: protected Socket sendMessage(Socket socket, String message) throws IOException {
      PrintWriter printWriter = newPrintWriter(socket);
  
      printWriter.println(message);
      printWriter.flush();
  
      return socket;
    }
docs: Sends a simple {@link String message} over the given {@link Socket}.
  
  @param socket {@link Socket} on which the {@link String message} is sent.
  @param message {@link String} containing the message to send over the {@link Socket}.
  @return the given {@link Socket} in order to chain multiple send operations.
  @throws IOException if an I/O error occurs while sending the given {@code message}
  using the provided {@link Socket}.
  @see #newBufferedReader(Socket)
  @see java.io.BufferedReader#readLine()
  @see java.net.Socket