Skip to content

Commit

Permalink
Sligth change to docs (#1902)
Browse files Browse the repository at this point in the history
* Updated docs to avoid confusion

* Update v3-to-v4.md
  • Loading branch information
Didas-git committed Feb 8, 2022
1 parent e265c52 commit 11b0c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v3-to-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The configuration object passed to `createClient` has changed significantly with

### No Auto Connect

In V4, the client does not automatically connect to the server, you need to run `.connect()` before any command, or you will receive error `ClientClosedError: The client is closed`.
In V4, the client does not automatically connect to the server. Instead you need to run `.connect()` after creating the client or you will receive an error: `ClientClosedError: The client is closed`.

```typescript
import { createClient } from 'redis';
Expand Down

0 comments on commit 11b0c06

Please sign in to comment.