muxpit
minimal multiplex interface using rpc-stream.
example
var muxpit = ;var concat = ;var net = ; var server = net; server;
api
var muxpit =
var pit = muxpit([opts], [onchannel])
Returns a multiplex.
opts
andonchannel
are same as that of multiplex
pit.open(id, [opts])
Creates and returns a shared stream. opts
are same as that of multiplex.createSharedStream()
and will be applied to both local and remote streams.
This method also emits an open
event with (stream, id)
at the other end.
license
mit