* Called upon successful reconnect. * * @private
()
| 626 | * @private |
| 627 | */ |
| 628 | private onreconnect(): void { |
| 629 | const attempt = this.backoff.attempts; |
| 630 | this._reconnecting = false; |
| 631 | this.backoff.reset(); |
| 632 | this.emitReserved("reconnect", attempt); |
| 633 | } |
| 634 | } |