mux-demux-shoe

A mux demux connection through shoe!

mux-demux-shoe

A mux demux connection through shoe!

var shoe = require("mux-demux-shoe")

var sock = shoe(function (stream) {
    // stream from MuxDemux with the meta property set
    if (stream.meta === "one") {
        stream.on("data", console.log.bind(console))
    }
})

sock.install(someHttpServer, "/shoe")
var shoe = require("mux-demux-shoe")
    , mdm = shoe("/shoe")

var one = mdm.createStream("one")

one.write("hello world")

npm install mux-demux-shoe

make test

  • Raynos