disconnect Method
Disconnects from the remote host.
Syntax
def disconnect() -> None: ...
Remarks
This method disconnects from the remote host. Calling this method is equivalent to setting the connected property to False.
Refer to the connected property for more information about MQTT-specific behavior.