https://github.com/joehand/hypercore-archiver-ws
websockets for hypercore-archiver
https://github.com/joehand/hypercore-archiver-ws
Last synced: 3 months ago
JSON representation
websockets for hypercore-archiver
- Host: GitHub
- URL: https://github.com/joehand/hypercore-archiver-ws
- Owner: joehand
- License: mit
- Created: 2017-07-18T20:35:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-22T18:22:16.000Z (almost 8 years ago)
- Last Synced: 2025-03-10T20:42:13.333Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-dat - hypercore-archiver-ws - websocket server for hypercore-archiver (Using Dat / Hosting & Dat Management)
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)