From 209bbff54256c06ec5f5a4eaad522dd4c84ac92e Mon Sep 17 00:00:00 2001 From: utf-4096 Date: Sat, 15 Jul 2023 16:53:47 +0200 Subject: [PATCH] fix: reset tx/rx counters on disconnect --- src/Client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Client.js b/src/Client.js index 2cb2df9..afd60ba 100644 --- a/src/Client.js +++ b/src/Client.js @@ -99,6 +99,8 @@ export class Client extends EventEmitter { this.emit('close') clearInterval(this.#keepAliveInterval) this.#keepAliveInterval = null + this.#tx = 0 + this.#rx = 0 } }