Support for automatic subscription updates when subscribing with a topic pattern
Description
The recently added feature to support topic pattern subscriptions is not functioning correctly. While the client successfully subscribes to multiple topics using the pattern subscription type, it does not dynamically update the list of subscribed topics. When new topics matching the pattern are added, the client fails to detect them automatically and requires a restart/recreate to recognize the changes.
Reproduction Steps
- Subscribe to multiple topics using a pattern-based subscription.
- Add new topics that match the pattern.
- Observe that the client does not detect the newly added topics.
Expected behavior
The client should automatically detect and subscribe to new topics matching the pattern without requiring a restart/recreate.
Actual behavior
When new topics matching the pattern are added, the client fails to detect them automatically and requires a restart/recreate to recognize the changes.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Client Version 4.0.2