2015-07-08 16:33:57 -07:00
|
|
|
ipfs-swarm Node.js implementation
|
|
|
|
=================================
|
|
|
|
|
2015-07-10 16:04:18 -07:00
|
|
|
[](http://ipn.io) [](http://ipfs.io/) [](http://webchat.freenode.net/?channels=%23ipfs)
|
2015-07-08 16:33:57 -07:00
|
|
|
|
|
|
|
> IPFS swarm implementation in Node.js
|
|
|
|
|
|
|
|
# Description
|
|
|
|
|
2015-07-09 15:45:03 -07:00
|
|
|
ipfs-swarm is an abstraction for the network layer on IPFS. It offers an API to open streams between peers on a specific protocol.
|
|
|
|
|
|
|
|
Ref link (still a WiP) - https://github.com/diasdavid/specs/blob/protocol-spec/protocol/layers.md#network-layer
|
|
|
|
|
2015-07-08 16:33:57 -07:00
|
|
|
# Usage
|
2015-07-09 15:45:03 -07:00
|
|
|
|
2015-07-10 12:28:40 -07:00
|
|
|
## API calls
|
2015-07-09 15:45:03 -07:00
|
|
|
|
2015-07-10 12:28:40 -07:00
|
|
|
.openStream
|
|
|
|
.registerHandle
|
|
|
|
|
|
|
|
## Events emmited
|
|
|
|
|
|
|
|
.on('error')
|
|
|
|
|
|
|
|
.on('connection')
|
|
|
|
.on('connection-unknown')
|
|
|
|
|
|
|
|
.on('stream')
|
|
|
|
.on('stream-unknown')
|