js-libp2p/README.md

30 lines
860 B
Markdown
Raw Normal View History

2015-07-08 16:33:57 -07:00
ipfs-swarm Node.js implementation
=================================
2015-07-10 16:04:18 -07:00
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](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')