diff --git a/README.md b/README.md index 60ac1f5..4af5456 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This ShareDB add-on gives you horizontal scalability; the ability to have a clus This snippet shows how to load this library and pass it into a new ShareDB instance. ```js -var redisPubsub = require('sharedb-redis-pubsub')(redisClient); // Redis client being an existing redis client connection +var redisPubsub = require('sharedb-redis-pubsub')({client:redisClient}); // Redis client being an existing redis client connection var backend = new ShareDB({ db: db, // db would be your mongo db or other storage location