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
address property #
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]