websockets for hypercore-archiver
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.md
README.md
example.js
index.js
package.json

README.md

hypercore-archiver-ws

websocket server for hypercore-archiver

Install

npm install hypercore-archiver-ws

Usage

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

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