mux-demux-shoe
A mux demux connection through shoe!
Similar to mux-demux-net, basically give you a MDM connection or a MDM server through shoe
Example Server
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")
Example client
var shoe = require("mux-demux-shoe")
, mdm = shoe("/shoe")
var one = mdm.createStream("one")
one.write("hello world")
Installation
npm install mux-demux-shoe
Tests
make test
Contributors
- Raynos