Conversation
…TLS session) MQTT 3.1.1 QoS-0 codec + transport over a caller-supplied byte pipe, and tagged binary frames on WebSocketTransport (1-byte channel tag, mechanism only). Version 0.7.0-dev + changelog. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… is refused Hosts may poll notifyPipeUp every loop tick; without pacing, a failing pipe write would retry CONNECT per tick. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…the transitive include) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
TunnelMqttTransport— MQTT 3.1.1 (QoS 0 only) over a caller-supplied byte pipe:setPipeSend(fn)/injectBytes()/notifyPipeUp(bool), exposing theMqttTransportAPI subset consumers use (setClientId,subscribe/unsubscribe,publish, topic-awareonMessage,send(doc, opts)). Keepalive via PINGREQ/PINGRESP with 1.5× timeout; subscriptions replay automatically after every reconnect; QoS/retain accepted for drop-in compatibility and always sent as QoS 0.MqttCodec— the QoS-0 packet codec underneath: encoders with golden-byte tests against the 3.1.1 spec, and an incremental decoder that tolerates arbitrary stream splits, skips packet types outside the subset, and bounds packet/topic sizes.WebSocketTransporttagged binary frames —sendBinaryTagged(tag, data, len)/onBinaryTagged(cb): a 1-byte application-defined channel tag inside the same WS frame, mechanism only. RegisteringonBinaryTaggedclaims the single binary receive slot (last registration wins, per Courier's callback model).Byte-pipe design keeps the transport fully host-testable: 48 new native test cases (23 codec, 25 transport) plus 5 tagged-frame tests on the WS transport.
Closes #24. Downstream halves: inanimate-tech/hawthorn-firmware#157 (adoption, opt-in flag), inanimate-tech/hawthorn-worker#157 (server demux). Motivation and hardware measurements: inanimate-tech/hawthorn-firmware#156.
Test plan
./tools/run-tests.py static-analysis— 0 errors./tools/run-tests.py unit— 216/216 (48 new)./tools/run-tests.py build— example builds pass (includes gnu++11 dialect)@genmon for review.
🤖 Generated with Claude Code