1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

fix #2123 - expose is ready (#2130)

This commit is contained in:
Leibale Eidelman
2022-05-11 09:35:36 -04:00
committed by GitHub
parent a3b33d0177
commit 5c9f31f244

View File

@@ -166,6 +166,10 @@ export default class RedisClient<
return this.#socket.isOpen;
}
get isReady(): boolean {
return this.#socket.isReady;
}
get v4(): Record<string, any> {
if (!this.#options?.legacyMode) {
throw new Error('the client is not in "legacy mode"');