this workes:
if (messageSize > 0) {
//Serial.println(client.readString());
String input = client.readString();
Serial.println(input);
looks like reading from the method readString() empties the buffer hence cant use idit again, what I did is store it on a String object variable "input" and use that.
It worked.