Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down