dominictarr / crdt

Commutative Replicated Data Types for easy collaborative/distributed systems.
MIT License
836 stars 43 forks source link

Using this with level-scuttlebutt #29

Open No9 opened 11 years ago

No9 commented 11 years ago

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 commented 11 years ago

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.
})