We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13b6468 commit 243cbcdCopy full SHA for 243cbcd
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "jderobot-commsmanager",
3
- "version": "1.0.8",
+ "version": "1.0.9",
4
"main": "dist/main.js",
5
"typings": "dist/index.d.ts",
6
"scripts": {
src/components/CommsManager.ts
@@ -69,6 +69,14 @@ export default class CommsManager {
69
}, 1000);
70
}
71
};
72
+
73
+ this.ws.onerror = (e) => {
74
+ console.log(`Connection with ${CommsManager.adress} interrupted: ${e}`);
75
+ setTimeout(function () {
76
+ delete CommsManager.instance;
77
+ CommsManager.instance = new CommsManager();
78
+ }, 1000);
79
+ };
80
81
82
// Singleton behavior
0 commit comments