fix: reset tx/rx counters on disconnect
This commit is contained in:
@@ -99,6 +99,8 @@ export class Client extends EventEmitter {
|
|||||||
this.emit('close')
|
this.emit('close')
|
||||||
clearInterval(this.#keepAliveInterval)
|
clearInterval(this.#keepAliveInterval)
|
||||||
this.#keepAliveInterval = null
|
this.#keepAliveInterval = null
|
||||||
|
this.#tx = 0
|
||||||
|
this.#rx = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user