chore: cleanup warnings

This commit is contained in:
2023-01-25 13:54:45 +00:00
parent 1af814b26a
commit 5ea6ee90a4
16 changed files with 49 additions and 69 deletions

View File

@ -59,7 +59,7 @@ export default class Connection {
this.Stats = new ConnectionStats();
this.StateHooks = new Map();
this.HasStateChange = true;
this.CurrentState = <StateSnapshot>{
this.CurrentState = {
connected: false,
disconnects: 0,
avgLatency: 0,
@ -67,7 +67,7 @@ export default class Connection {
received: 0,
send: 0
}
};
} as StateSnapshot;
this.LastState = Object.freeze({ ...this.CurrentState });
this.IsClosed = false;
this.ReconnectTimer = null;