We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7212fae commit f21837eCopy full SHA for f21837e
1 file changed
org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/MqttMessage.java
@@ -112,7 +112,8 @@ public boolean isRetained() {
112
113
/**
114
* Whether or not the publish message should be retained by the messaging engine.
115
- * Sending a message with the retained set to <code>false</code> will clear the
+ * Sending a message with retained set to <code>true</code> and with an empty
116
+ * byte array as the payload e.g. <code>new byte[0]</code> will clear the
117
* retained message from the server. The default value is <code>false</code>
118
*
119
* @param retained whether or not the messaging engine should retain the message.
0 commit comments