Skip to content

Commit 13b6468

Browse files
committed
Remove on error
1 parent b10ae48 commit 13b6468

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-commsmanager",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"scripts": {

src/components/CommsManager.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ export default class CommsManager {
6969
}, 1000);
7070
}
7171
};
72-
73-
this.ws.onerror = (e: any) => {
74-
console.error("Socket encountered error: ", e.message, "Closing socket");
75-
this.ws.close();
76-
setTimeout(function () {
77-
delete CommsManager.instance;
78-
CommsManager.instance = new CommsManager();
79-
}, 1000);
80-
};
8172
}
8273

8374
// Singleton behavior

0 commit comments

Comments
 (0)