Skip to content

Commit

Permalink
adjust reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Apr 8, 2024
1 parent bb85041 commit 183054a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1506,13 +1506,6 @@ class Mercedesme extends utils.Adapter {
this.log.debug(data);
this.setState("info.connection", false, true);
this.log.debug("Websocket closed");
if (this.wsHeartbeatTimeout) {
clearTimeout(this.wsHeartbeatTimeout);
clearInterval(this.reconnectInterval);
}
setTimeout(() => {
this.connectWS();
}, 2000);
});
this.ws.on("message", async (data, isBinary) => {
data = isBinary ? data : data.toString();
Expand Down

0 comments on commit 183054a

Please sign in to comment.