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

Method connect

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

Source from the content-addressed store, hash-verified

233 }
234
235 async connect(): Promise<void> {
236 if (this.#isOpen) {
237 throw new Error('Socket already opened');
238 }
239
240 this.#isOpen = true;
241 return this.#connect();
242 }
243
244 async #connect(): Promise<void> {
245 let retries = 0;

Callers 1

createMethod · 0.45

Calls 1

#connectMethod · 0.95

Tested by

no test coverage detected