A transport-agnostic packet pipe used by the MQTT session.
Both the TCP (CoreSocket) and WebSocket transports implement this so the session encodes
and decodes the same control packets over either. readPacket resolves the next complete packet
or null at end of stream; writePacket sends one already-encoded packet.
A transport-agnostic packet pipe used by the MQTT session.
Both the TCP (CoreSocket) and WebSocket transports implement this so the session encodes and decodes the same control packets over either.
readPacketresolves the next complete packet ornullat end of stream;writePacketsends one already-encoded packet.Since
1.0.0