mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 09:47:56 -05:00
A $share/<share name>/<topic filter> subscription was matched literally against each topic, so its subscriber never received anything. It now joins the group its share name and topic filter name: each matching publish goes to one connected member of each group, chosen at random, at the lower of the publish and subscription QoS, as AWS IoT Core distributes it. A share name that is missing, holds /, + or #, or is over 128 characters, or a topic filter over 256 characters, is refused in the SUBACK. A shared subscription gets no retained message on subscribe, and iot:Subscribe must allow both the $share/ form and the plain filter. A group with no connected member gets nothing, and the shared subscription quotas are not enforced. Closes #9889