Skip to content

Commit

Permalink
docs: fix incorrect use of import (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrawshaw authored Dec 23, 2021
1 parent ff22767 commit 1687394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const io = new Server();
const pubClient = createClient({ host: 'localhost', port: 6379 });
const subClient = pubClient.duplicate();

io.adapter(redisAdapter(pubClient, subClient));
io.adapter(createAdapter(pubClient, subClient));

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

io.adapter(redisAdapter(pubClient, subClient));
io.adapter(createAdapter(pubClient, subClient));

// redis@3
io.listen(3000);
Expand Down

0 comments on commit 1687394

Please sign in to comment.