diff --git a/src/component/internal/reconnector/index.ts b/src/component/internal/reconnector/index.ts index 64e15bb5..91f73b36 100644 --- a/src/component/internal/reconnector/index.ts +++ b/src/component/internal/reconnector/index.ts @@ -68,6 +68,7 @@ export class Reconnector extends EventEmitter { if (this._open) { this._last_connected = new Date() + this._total_reconnects = 0 this.emit('connect') } else { this._conn.disconnect()