Skip to content

Commit

Permalink
CONNACK set shared subscription available property to true (#800)
Browse files Browse the repository at this point in the history
Updates the CONNACK message's property shared subscription available to return reflect the availability of the functionality
  • Loading branch information
andsel authored Dec 27, 2023
1 parent f1c6f4e commit 3baad12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version 0.18-SNAPSHOT:
- Initial implementation of shared subscription subscribe and publish part. (#796)
- Added unsubscribe of shared subscriptions. (#799)
- Implemented persistence for shared subscriptions to sustain broker restarts (#802)
- CONNACK set shared subscription available property to true. (#800)
[fix] Implements requirements on reserved topics (starts with $). Implements the matching rules and avoid to proceed with processing on client's publishes on those topics (#793)
[feature] Handle will delay interval and MQTT5's Will optional properties (#770)
[fix] Handle empty collector batches in PostOffice (#777)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ private ConnAckPropertiesBuilder prepareConnAckPropertiesBuilder(boolean serverG
.retainAvailable(true)
.wildcardSubscriptionAvailable(true)
.subscriptionIdentifiersAvailable(false)
.sharedSubscriptionAvailable(false);
.sharedSubscriptionAvailable(true);
return builder;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void testAckResponseProperties() {
verifyProperty(MqttPropertyType.TOPIC_ALIAS_MAXIMUM, ackProps, 0, "No topic alias available");
verifyProperty(MqttPropertyType.WILDCARD_SUBSCRIPTION_AVAILABLE, ackProps, 1, "Wildcard subscription feature is available");
verifyProperty(MqttPropertyType.SUBSCRIPTION_IDENTIFIER_AVAILABLE, ackProps, 0, "Subscription feature is NOT available");
verifyProperty(MqttPropertyType.SHARED_SUBSCRIPTION_AVAILABLE, ackProps, 0, "Shared subscription feature is NOT available");
verifyProperty(MqttPropertyType.SHARED_SUBSCRIPTION_AVAILABLE, ackProps, 1, "Shared subscription feature is available");
verifyNotSet(MqttPropertyType.AUTHENTICATION_METHOD, ackProps, "No auth method available");
verifyNotSet(MqttPropertyType.AUTHENTICATION_DATA, ackProps, "No auth data available");
}
Expand Down

0 comments on commit 3baad12

Please sign in to comment.