Stops the client attempting to reconnect when the client has been disconnected on purpose.
When disconnect has been called, _preventReconnect() gets called which sets _reconnect = null.
This guard has been added to stop the client from attempting to reconnect which will end with an error from _attemptReconnection() with regards to return self._reconnect() -- self._reconnect is not a function -- because it has been set to null
Stops the client attempting to reconnect when the client has been disconnected on purpose.
When disconnect has been called,
_preventReconnect()
gets called which sets_reconnect = null
. This guard has been added to stop the client from attempting to reconnect which will end with an error from_attemptReconnection()
with regards toreturn self._reconnect()
-- self._reconnect is not a function -- because it has been set to nullThis change is