* Destroy the client. Rejects all commands immediately.
()
| 1857 | * Destroy the client. Rejects all commands immediately. |
| 1858 | */ |
| 1859 | destroy() { |
| 1860 | clearTimeout(this._self.#pingTimer); |
| 1861 | this._self.#queue.flushAll(new DisconnectsClientError()); |
| 1862 | this._self.#socket.destroy(); |
| 1863 | this._self.#clientSideCache?.onClose(); |
| 1864 | this._self.#unregisterFromMetrics(); |
| 1865 | this._self.#credentialsSubscription?.dispose(); |
| 1866 | this._self.#credentialsSubscription = null; |
| 1867 | } |
| 1868 | |
| 1869 | ref() { |
| 1870 | this._self.#socket.ref(); |
no test coverage detected