Waterstream MQTT v5 Support¶
Starting from version 1.3.0 Waterstream supports version 5 of MQTT protocol.
Waterstream version 1.4.27-SNAPSHOT supports following MQTT v5 features:
Session expiry according to “Session Expiry Interval” property of the CONNACK packet
Message expiry according to “Message Expiry Interval” property of the PUBLISH packet.
Reason codes on all ACKs messages - easier debug of issues with CONNACK, PUBACK, PUBREC, PUBREL, PUBCOMP, SUBACK, UNSUBACK, DISCONNECT packets
Server DISCONNECT in case of some issues rather than just dropping the TCP connection
PUBLISH packet metadata properties - payload format, content type, response topic, correlation data, user properties. If the publishing client provides them, such properties are passed to the consuming client.
Flow control - client may specify how many in-flight messages it can take. Also the server reports to the client how many it can take. Server puts sending messages on hold if this limit is reached. Clients that send messages beyond this limit are disconnected.
Maximum packet size - server reports to the client maximal packet size it supports. Client can also specify maximal packet size it can take. Messages that are bigger than this limit are skipped.
Server feature availability - server reports to the clients in CONNACK properties which features does it support
Subscription options - more fine-grained subscription tuning, such as NoLocal (don’t send back to the client the messages it send to the server), skip retained messages etc.
Assigned ClientId - if client didn’t specify ClientID, server reports back to the client ID it’s using for this connection.
Not supported yet features¶
Here are MQTT v5 features which aren’t yet supported in Waterstream version 1.4.27-SNAPSHOT: