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

fix: Fix small typo in Redis Pub/Sub docs (#2400)

This commit is contained in:
Soumitra Shewale
2023-01-30 22:53:17 +05:30
committed by GitHub
parent 7a0334f396
commit bb9a024d91

View File

@@ -8,7 +8,7 @@ Pub/Sub requires a dedicated stand-alone client. You can easily get one by `.dup
```typescript ```typescript
const subscriber = client.duplicate(); const subscriber = client.duplicate();
subscribe.on('error', err => console.error(err)); subscriber.on('error', err => console.error(err));
await subscriber.connect(); await subscriber.connect();
``` ```