Disconnect Method

Disconnects from the remote host.

Syntax

async mqtt.disconnect(): Promise<void>

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.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 JS Edition - Version 20.0 [Build 8162]