in content/lib/paho-mqtt.js [1522:1537]
ClientImpl.prototype._reconnect = function () {
this._trace("Client._reconnect");
if (!this.connected) {
this._reconnecting = true;
this.sendPinger.cancel();
this.receivePinger.cancel();
if (this._reconnectInterval < 128)
this._reconnectInterval = this._reconnectInterval * 2;
if (this.connectOptions.uris) {
this.hostIndex = 0;
this._doConnect(this.connectOptions.uris[0]);
} else {
this._doConnect(this.uri);
}
}
};