Skip to content

Commit 5c9f31f

Browse files
authored
fix #2123 - expose is ready (#2130)
1 parent a3b33d0 commit 5c9f31f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/client/lib/client/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ export default class RedisClient<
166166
return this.#socket.isOpen;
167167
}
168168

169+
get isReady(): boolean {
170+
return this.#socket.isReady;
171+
}
172+
169173
get v4(): Record<string, any> {
170174
if (!this.#options?.legacyMode) {
171175
throw new Error('the client is not in "legacy mode"');

0 commit comments

Comments
 (0)