Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Using this with level-scuttlebutt #29

Open
No9 opened this issue Oct 19, 2013 · 1 comment
Open

Using this with level-scuttlebutt #29

No9 opened this issue Oct 19, 2013 · 1 comment

Comments

@No9
Copy link

No9 commented Oct 19, 2013

Right now it seems as thought this only works with ScuttleButt
https://github.com/dominictarr/crdt/blob/master/doc.js#L6

It looks like it should be a matter of just allowing a scuttlebutt type to be passed to crdt.

Any thoughts?

Interested in this as a pull req?

@dominictarr
Copy link
Owner

yes, this works with crdt, or any scuttlebutt subclass.

in the level-scuttlebutt readme,

level_scuttlebutt(sbDb, udid, function (name) {
  //create a scuttlebutt instance given a name.
  //the key will match the start of the name.

  return new Model() /***** or crdt, or any scuttlebutt ***/

  //now is a good time to customize the scuttlebutt instance.
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants