Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2144 +/- ##
==========================================
+ Coverage 88.81% 88.86% +0.04%
==========================================
Files 26 26
Lines 1905 1913 +8
Branches 453 457 +4
==========================================
+ Hits 1692 1700 +8
Misses 173 173
Partials 40 40
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
subscribe()sends No Local on a shared subscription. That is a Protocol Error [MQTT-3.8.3-4], and a server must close the connection on a Protocol Error.subscribe()has already stored the topic for resubscribe by then, so every reconnect sends it again.On MQTT 5,
subscribe()now gives its callback an error when a$share/topic filter hasnl: true, either from the options or from a subscription map, the same way it already handles an invalid topic. No Local on a normal topic, and a shared subscription without it, are sent as before. MQTT 3.1.1 has no No Local flag, so it is unchanged. (The Aedes in devDependencies has no MQTT 5 support, so I couldn't show the broker side in a test; the test checks that nothing is sent or stored.)Tests
should refuse No Local on a shared subscription and send no SUBSCRIBE(string + options and subscription-map forms;nl: trueon a normal topic andnl: falseon a shared one still go out). It fails on main and passes here.On Windows a full run of
client_mqtt5.tsstops after the first keepalive tests, on main as well; with thekeepalivesuite skipped it shows the same failures as main. eslint andtsc --noEmitare clean.This change was written with the help of Claude Code (AI). I reviewed it and ran the tests above.
🤖 Generated with Claude Code