Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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

About

websockets for hypercore-archiver

Resources

License

Releases

No releases published

Packages

No packages published