mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-24 18:02:28 +00:00
Initial Commit
This commit is contained in:
parent
0e5acd7eb9
commit
4fd2bf1505
33
README.md
33
README.md
@ -1,2 +1,31 @@
|
|||||||
# abstract-stream-muxer
|
abstract-stream-muxer
|
||||||
A test suite and interface you can use to implement a stream muxer.
|
=====================
|
||||||
|
|
||||||
|
[](http://ipn.io) [](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
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
# 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
BIN
img/badge.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
BIN
img/badge.sketch
Normal file
BIN
img/badge.sketch
Normal file
Binary file not shown.
18
img/badge.svg
Normal file
18
img/badge.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 20 KiB |
Loading…
x
Reference in New Issue
Block a user