MQTTResponse
faststream.mqtt.response.MQTTResponse #
MQTTResponse(
body: SendableMessage,
*,
headers: dict[str, str] | None = None,
correlation_id: str | None = None,
qos: QoS = AT_MOST_ONCE,
retain: bool = False,
)
Bases: Response
Source code in faststream/mqtt/response.py
14 15 16 17 18 19 20 21 22 23 24 25 | |
as_publish_command #
as_publish_command() -> MQTTPublishCommand
Source code in faststream/mqtt/response.py
27 28 29 30 31 32 33 34 35 36 37 | |
get_publish_key #
get_publish_key() -> Any | None
Get the key for publishing this message.
Override this method in subclasses to provide broker-specific keys. Default implementation returns None (no key).
| RETURNS | DESCRIPTION |
|---|---|
Any | None | The key for publishing, or None if this Response type doesn't use keys. |
Source code in faststream/response/response.py
31 32 33 34 35 36 37 38 39 40 | |