Skip to content

dominictarr/scuttlebucket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published