We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecd4eda commit fe674a6Copy full SHA for fe674a6
packages/client/lib/client/index.ts
@@ -362,7 +362,8 @@ export default class RedisClient<
362
this.#pingTimer = setTimeout(() => {
363
if (!this.#socket.isReady) return;
364
365
- (this as unknown as RedisClientType<M, F, S>).ping()
+ const v4Client = (this.#options?.legacyMode ? this.v4 : this);
366
+ (v4Client as unknown as RedisClientType<M, F, S>).ping()
367
.then(reply => this.emit('ping-interval', reply))
368
.catch(err => this.emit('error', err))
369
.finally(() => this.#setPingTimer());
0 commit comments