receive
Reads one complete MQTT packet from the TCP stream.
Read the fixed header byte (packet type + flags).
Read the Variable Byte Integer remaining length (1–4 bytes).
Read exactly
remainingLengthpayload bytes.Return the reassembled packet as a single ByteArray.