Skip to content
Make a `knockout.ObservableArray` out of CRDT set or document
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

knockout-crdt-observable-array

Make a knockout.ObservableArray out of CRDT set or document.

Installation

npm install knockout-crdt-observable-array

Usage

var ko = require('knockout');
var crdtObservableArray = require('crdt-observable-array');
var Doc = require('crdt').Doc;

var doc = new Doc();
var people = doc.createSet('resource', 'person');

ko.applyBindings({ people: crdtObservableArray(people) });
Something went wrong with that request. Please try again.