Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Replicated Arrays
JavaScript
tree: 0908c50f5d

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
example.js
index.js
package.json

README.md

r-array

Replicated Array

(via scuttlebutt)

example

var RArray = require('r-array')

var a = new RArray()
var b = new RArray()
var s;

//pipe instances together...
(s =a.createStream())
  .pipe(b.createStream())
  .pipe(s)

//see https://github.com/dominictarr/scuttlebutt

a.splice(0, 0, 'A', 'B', 'C', 'D')

process.nextTick(function () {
  console.log(b.toJSON())
})

License

MIT

Something went wrong with that request. Please try again.