Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joehand/hypercore-archiver-ws

websockets for hypercore-archiver
https://github.com/joehand/hypercore-archiver-ws

Last synced: about 1 month ago
JSON representation

websockets for hypercore-archiver

Awesome Lists containing this project

README

        

# hypercore-archiver-ws

websocket server for hypercore-archiver

## Install

```
npm install hypercore-archiver-ws
```

## Usage

```js
var archiver = require('hypercore-archiver')
var archiverWs = require('hypercore-archiver-ws')

var archives = archiver('./my-archiver')
var server = archiverWs(archives)
server.listen(8080, function () {
console.log(`listening on port ${8080}`)
})
```

### Custom server

```js
var archiver = require('hypercore-archiver')
var archiverWs = require('hypercore-archiver-ws')

var archives = archiver('./my-archiver')
var server = archiverWs(archives)
server.listen(8080, function () {
console.log(`listening on port ${8080}`)
})
```

## License

[MIT](LICENSE.md)