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

Sligth change to docs (#1902)

* Updated docs to avoid confusion

* Update v3-to-v4.md
This commit is contained in:
DidaS
2022-02-08 17:36:02 +00:00
committed by GitHub
parent e265c521e8
commit 11b0c06a33

View File

@@ -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';