WebSocket client for ArduinoHttpClient conditional if with readString() incoming data buffer
this workes:

if (messageSize &gt; 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 it again, what I did is store it on a String object variable "input" and use that.

It worked.