Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Generate TCP servers that serve MDM streams.
branch: master

0.0.2

latest commit d39da5d17b
Raynos (Jake Verbaten) authored
Failed to load latest commit information.
example first
.gitignore first
.travis.yml first
LICENCE first
README.md
index.js return server
package.json 0.0.2

README.md

mux-demux-net

Generate TCP servers that serve MDM streams.

Because opening net servers and piping is too much work!

Example Client

var MuxDemux = require("mux-demux-net")
    , mdm = MuxDemux(8642)

var stream = mdm.createStream("winning")
stream.on("data", console.log.bind(console, "[CLIENT]"))
stream.write("client")

Example server

var MuxDemux = require("..")

MuxDemux(function (stream) {
    stream.on("data", console.log.bind(console, "[SERVER]"))
    stream.write("server")
}, 8642)

Installation

npm install mux-demux-net

Tests

make test

Contributors

  • Raynos

MIT Licenced

Something went wrong with that request. Please try again.