OP-2481 Cleanup

This commit is contained in:
Dmitry Leleko
2022-06-30 15:21:35 +03:00
parent ccff8058e5
commit 2b3d2b8db5
2 changed files with 4 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ const isSubType = (subType: string): subType is keyof Subscription => Object.val
class OrionAggregatorWS {
private ws: WebSocket | undefined;
private isClosedIntentionally: boolean = false;
private isClosedIntentionally = false;
private subscriptions: Partial<{
[K in keyof Subscription]: Partial<Record<string, Subscription[K]>>
@@ -263,7 +263,7 @@ class OrionAggregatorWS {
init(isReconnect = false) {
this.ws = new WebSocket(this.wsUrl);
this.ws.onclose = (e) => {
this.ws.onclose = () => {
if (!this.isClosedIntentionally) this.init(true);
};
this.ws.onopen = () => {