No description, website, or topics provided.
JavaScript
Latest commit 82466e7 Jul 9, 2013 @dominictarr 0.2.3
Permalink
Failed to load latest commit information.
example example needs r-edit and scuttlebutt Dec 19, 2012
test uh, test first Dec 17, 2012
.gitignore initial Dec 12, 2012
.travis.yml initial Dec 12, 2012
LICENSE initial Dec 12, 2012
README.md fix badges Dec 12, 2012
index.js sort history like I thought I was - spent all day trying to figure ou… Dec 19, 2012
package.json 0.2.3 Jul 9, 2013

README.md

scuttlebucket

Nested scuttlebutts

server-tests

browser-support

Example

var Scuttlebucket = require('scuttlebucket')
var Model         = require('scuttlebutt/model')
var Chat          = require('scuttlebutt/model')
var Text          = require('r-edit')

function create() {
  return new Scuttlebucket()
    .add('meta', new Model())
    .add('chat', new Chat())
    .add('text', new Text())
}

//create two instances, and pipe them together!

var A = create(), B = create()

var as = A.createStream()
var bs = B.createStream()

as.pipe(bs).pipe(as)

and everything just works like magic!

License

MIT