I'll never work on this, so I added the wontfix
label to the open issues, and closed them.
server.js
var casa = require('convert-and-seed-audio')
var http = require('http')
var ecstatic = require('ecstatic')
var server = http.createServer(ecstatic(__dirname))
casa(server)
server.listen(8080)
client.js
var createClient = require('convert-and-seed-audio')
var dragDrop = require('drag-drop/buffer')
var client = createClient()
dragDrop('body', function (files) {
client.upload(files)
})
var casa = require('convert-and-seed-audio')
server
is anhttp.Server
instance. You have to callserver.listen()
.emitter
is anevents.EventEmitter
instance. You can callemitter.on
, if you want.
error
(err)upload-request
(infoHash)new-bundle
(bundle)
var createClient = require('convert-and-seed-audio')
Written for use with browserify.
files
is a file or an array of files.cb(err, infoHashes)
err
is null or an Error objectinfoHashes
is an array of info hashes. If you uploaded one file, it is an array of one info hash.
songBundles
is an array of song bundles, or a song bundle.
songId
is the id of the song bundle to remove.
songId
is the id of the song bundle to return.- Returns
songBundle
.
With npm do:
npm install convert-and-seed-audio