Skip to content

Commit

Permalink
v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Dec 6, 2024
1 parent 53c8f03 commit 6d9c2be
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Unter commands das commando auf klappen und den button neben start drücken wenn
Remote sind vorgefertige Remote Befehle

## Changelog
### 0.3.0 (2024-12-06)

### 0.3.2 (2024-12-06)

- fix for too many request error

Expand Down
4 changes: 2 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"common": {
"name": "mercedesme",
"version": "0.3.0",
"version": "0.3.3",
"news": {
"0.3.0": {
"0.3.3": {
"en": "fix for too many request error",
"de": "Fix für zu viele Anfragen Fehler",
"ru": "исправить слишком много ошибок запроса",
Expand Down
9 changes: 8 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,13 @@ class Mercedesme extends utils.Adapter {
if (this.wsHeartbeatTimeout) {
clearTimeout(this.wsHeartbeatTimeout);
}
this.wsHeartbeatTimeout = setTimeout(() => {
this.log.info("Lost WebSocket connection. Reconnect WebSocket");
this.ws.close();
setTimeout(() => {
this.connectWS();
}, 2000);
}, 1 * 60 * 1000); //1min
});
this.ws.on("close", (data) => {
this.log.debug(data);
Expand All @@ -1555,7 +1562,7 @@ class Mercedesme extends utils.Adapter {
setTimeout(() => {
this.connectWS();
}, 2000);
}, 3 * 60 * 1000); //3min
}, 1 * 60 * 1000); //1min
try {
const message = VehicleEvents.PushMessage.deserializeBinary(data).toObject();
if (message.debugmessage) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@
"test:unit": "mocha test/unit --exit",
"release": "release-script --all"
},
"version": "0.3.0"
"version": "0.3.3"
}

0 comments on commit 6d9c2be

Please sign in to comment.