Shoe & mux demux with reconnect!
JavaScript
Latest commit fc5d73c Aug 16, 2012 @Raynos 0.8.2
Failed to load latest commit information.
example dead code Aug 9, 2012
.gitignore first Aug 3, 2012
LICENCE first Aug 4, 2012
README.md cleanuped readme Aug 6, 2012
browser.js expose the ability to get the underlying stream Aug 16, 2012
index.js >_< Aug 12, 2012
package.json 0.8.2 Aug 16, 2012

README.md

boot

An automatic reconnect mux-demux-shoe

The mdm connection you get from shoe will magically handle reconnection logic for you under the hood. You just play with streams

Client Example

var boot = require('boot')
    , mdm = boot("/boot")

var one = mdm.createStream("one")

one.on("data", console.log.bind(console, "client"))

one.write("hello world")

Server Example

var boot = require("boot")
    , through = require("through")
    , echoStream = through()

var sock = boot(function (stream) {
    // stream from MuxDemux with the meta property set
    if (stream.meta === "one") {
        stream.on("data", console.log.bind(console, "server"))
        stream.pipe(echoStream, { end: false }).pipe(stream)
    }
})

sock.install(server, "/boot")

Installation

npm install boot

Contributors

  • Raynos

MIT Licenced