Skip to content

joehand/hypercore-archiver-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published