Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 704 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 704 Bytes

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