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

Method connect

packages/client/lib/client/index.ts:1149–1158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1147 }
1148
1149 async connect() {
1150 await trace(CHANNELS.TRACE_CONNECT,
1151 () => this._self.#socket.connect(),
1152 () => ({
1153 ...this._self.#socketTraceContext(),
1154 clientId: this._self._clientId
1155 })
1156 );
1157 return this as unknown as RedisClientType<M, F, S, RESP, TYPE_MAPPING>;
1158 }
1159
1160 /**
1161 * @internal

Callers 15

createRedisClientFunction · 0.45
cache.spec.tsFile · 0.45
socket.spec.tsFile · 0.45
withConnectedSocketFunction · 0.45
withCapturedConnectFunction · 0.45
key-prefix.spec.tsFile · 0.45
tracing.spec.tsFile · 0.45
tls.spec.tsFile · 0.45
index.spec.tsFile · 0.45
createTestClientFunction · 0.45

Calls 2

traceFunction · 0.90
#socketTraceContextMethod · 0.80

Tested by 3

withConnectedSocketFunction · 0.36
withCapturedConnectFunction · 0.36
runAuthenticationTestFunction · 0.36