This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.

Open source

Client.reconnect()

Attempts to reconnect to the MQTT broker using the same connection parameters as the last successful connection.

Signature

JavaScript
client.reconnect()