Skip to content

Commit b5d3c4d

Browse files
committed
deprecate Connection
1 parent 41c9e3b commit b5d3c4d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

awscrt/mqtt.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,22 @@ class OperationStatisticsData:
243243
unacked_operation_size: int = 0
244244

245245

246+
@deprecated(
247+
"""
248+
Deprecated tag: Please use MQTT5 Client for new code. There are no current plans to
249+
fully deprecate the MQTT 3.1.1 client but it is highly recommended customers migrate
250+
to the MQTT5 Client to have access to a more robust feature set, clearer error handling, and lifetime
251+
management. More details can be found here: <URL>
252+
""",
253+
since="9.9.9")
246254
class Connection(NativeResource):
247-
"""MQTT client connection.
255+
"""
256+
Deprecated Definition. Please use MQTT5 Client for new code. There are no current plans to
257+
fully deprecate the MQTT 3.1.1 client but it is highly recommended customers migrate
258+
to the MQTT5 Client to have access to a more robust feature set, clearer error handling, and lifetime
259+
management. More details can be found here: <URL>
260+
261+
MQTT client connection.
248262
249263
Args:
250264
client (Client): MQTT client to spawn connection from.

0 commit comments

Comments
 (0)