You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will result in stop the reconnectTimer in the second call, which has just been started by the first one (if there is a little time cap). This will stop the device to be reconnected.
Move the clearTimerout inside the if like so
if (this._socketConnected !== value) {
clearTimeout(this.reconnectTimeout);
Activity
volkerrichert commentedon Dec 16, 2022
One small annotation. It will not be called twice by "close" & "end" but "error" and "close"