SwiftMQTT
SwiftMQTT copied to clipboard
Read full message from InputStream.
Hello! Sometimes MQTT message doesn't fit one TCP packet. It can lead to problems in MQTTSessionDelegate or even to crash in runtime (when topic of MQTTPublishPacket is too large and divided to different TCP packets). In this PR I would like to fix it using a buffer to collect the complete message.