MQTTSubscriberSpecification
faststream.mqtt.subscriber.specification.MQTTSubscriberSpecification #
MQTTSubscriberSpecification(
_outer_config: MQTTBrokerConfig,
specification_config: MQTTSubscriberSpecificationConfig,
calls: CallsCollection[Any],
)
Bases: SubscriberSpecification[MQTTBrokerConfig, MQTTSubscriberSpecificationConfig]
Source code in faststream/mqtt/subscriber/specification.py
24 25 26 27 28 29 30 | |
address property #
address: str
The topic a message actually arrives on.
A shared subscription is asked for by prefixing the topic with $share/<group>/, but no message ever carries that prefix in its topic, so the address does not either. The channel name and the MQTT channel binding both keep it, which is where the group stays visible.
get_schema #
get_schema() -> dict[str, SubscriberSpec]
Source code in faststream/mqtt/subscriber/specification.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
get_payloads #
get_payloads() -> list[tuple[dict[str, Any], str]]
Source code in faststream/_internal/endpoint/subscriber/specification.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |