Initial Commit

This commit is contained in:
David Dias 2015-07-10 14:41:19 -07:00
parent 0e5acd7eb9
commit 4fd2bf1505
4 changed files with 49 additions and 2 deletions

View File

@ -1,2 +1,31 @@
# abstract-stream-muxer
A test suite and interface you can use to implement a stream muxer.
abstract-stream-muxer
=====================
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
> A test suite and interface you can use to implement a stream muxer.
# Modules that implement the interface
-
Send a PR to add a new one if you happen to find or write one.
# Badge
![](/img/badge.png)
# How to use
# API
A valid (read: that follows this abstraction) stream muxer, must implement the following API.
### `Node.js` muxer.attach(transport, function (err, conn)) || `Go` conn, err := muxer.attach(transport)
### `Node.js` conn.dialStream(function (err, stream)) || `Go` stream, err := conn.dialStream()
### `Node.js` conn.on('stream', function (stream)) || `Go` stream := conn.listen()

BIN
img/badge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
img/badge.sketch Normal file

Binary file not shown.

18
img/badge.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB