From c8e4507e651f3137fcb7801945d533a11da92842 Mon Sep 17 00:00:00 2001 From: figdavi Date: Mon, 10 Nov 2025 22:48:32 -0300 Subject: [PATCH] docs: fix typo broken -> broker in on_connect() and on_publish() docstrings Signed-off-by: figdavi --- src/paho/mqtt/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py index 4ccc8696..bbde6fdc 100644 --- a/src/paho/mqtt/client.py +++ b/src/paho/mqtt/client.py @@ -2458,7 +2458,7 @@ def on_connect(self) -> CallbackOnConnect | None: :param Client client: the client instance for this callback :param userdata: the private user data as set in Client() or user_data_set() :param ConnectFlags connect_flags: the flags for this connection - :param ReasonCode reason_code: the connection reason code received from the broken. + :param ReasonCode reason_code: the connection reason code received from the broker. In MQTT v5.0 it's the reason code defined by the standard. In MQTT v3, we convert return code to a reason code, see `convert_connack_rc_to_reason_code()`. @@ -2642,7 +2642,7 @@ def on_publish(self) -> CallbackOnPublish | None: :param userdata: the private user data as set in Client() or user_data_set() :param int mid: matches the mid variable returned from the corresponding `publish()` call, to allow outgoing messages to be tracked. - :param ReasonCode reason_code: the connection reason code received from the broken. + :param ReasonCode reason_code: the connection reason code received from the broker. In MQTT v5.0 it's the reason code defined by the standard. In MQTT v3 it's always the reason code Success :parama Properties properties: the MQTT v5.0 properties received from the broker.