derbyjs/racer

Racer creates ShareJS client wrongly making it use default redis connection (localhost:6379)

Closed this issue · 2 comments

Racer options object used when creating store (racer.createStore(options)) contains db & redis params. When creating ShareJS instance in LiveDB, only options.db is passed.

I worked around this by creating a sub param in db called redis and passing the parent redis param in it, i.e.: options.db.redis = options.redis

Should be fixed in LiveDB.

We do this:

var store = derby.createStore({backend: livedb.client({... livedb options})});

Should be fixed in LiveDB.

File an issue in livedb then please.

Check this out: josephg/ShareJS#249