MCPcopy
hub / github.com/redis/node-redis / destroy

Method destroy

packages/client/lib/client/socket.ts:424–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

422 }
423
424 destroy() {
425 if (!this.#isOpen) {
426 throw new ClientClosedError();
427 }
428
429 this.#isOpen = false;
430 this.destroySocket();
431 }
432
433 destroySocket() {
434 const wasReady = this.#isReady;

Callers

nothing calls this directly

Calls 1

destroySocketMethod · 0.95

Tested by

no test coverage detected