Skip to content

Commit 1687394

Browse files
authored
docs: fix incorrect use of import (#437)
1 parent ff22767 commit 1687394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const io = new Server();
7070
const pubClient = createClient({ host: 'localhost', port: 6379 });
7171
const subClient = pubClient.duplicate();
7272

73-
io.adapter(redisAdapter(pubClient, subClient));
73+
io.adapter(createAdapter(pubClient, subClient));
7474

7575
// redis@3
7676
io.listen(3000);
@@ -93,7 +93,7 @@ const io = new Server();
9393
const pubClient = createClient({ host: 'localhost', port: 6379 });
9494
const subClient = pubClient.duplicate();
9595

96-
io.adapter(redisAdapter(pubClient, subClient));
96+
io.adapter(createAdapter(pubClient, subClient));
9797

9898
// redis@3
9999
io.listen(3000);

0 commit comments

Comments
 (0)