@jacobbubu/crdt-pull
v1.0.2
Published
[](https://travis-ci.org/jacobbubu/crdt-pull) [](https://coveralls.io/github/jacobbubu/crdt-pull) [ => {
const doc = new Doc({ id: 'doc' })
const hoc = new Doc({ id: 'hoc' })
const ds = doc.createStream({ name: 'd-h', wrapper: 'raw' })
const hs = hoc.createStream({ name: 'h-d', wrapper: 'raw' })
link(ds, hs)
doc.add({ id: 'abc', hello: 3 })
await delay(100)
console.log(hoc.toJSON())
}
// tslint:disable-next-line no-floating-promises
main()Please see the test cases for the detail.
