Skip to content

Commit

Permalink
fix redis#2123 - expose is ready (redis#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
leibale authored May 11, 2022
1 parent a3b33d0 commit 5c9f31f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/client/lib/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"');
Expand Down

0 comments on commit 5c9f31f

Please sign in to comment.