multilevel server and browser client with a level-livefeed manifest
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
example
LICENSE
browser.js
index.js
manifest.json
package.json
readme.markdown

readme.markdown

multilevel-feed

multilevel server and browser client with a level-livefeed manifest

example

browser:

var db = require('multilevel-feed')();
var sock = require('shoe')('/sock');
sock.pipe(db.createRpcStream()).pipe(sock);

server:

var level = require('level');
var db = level('test.db');
var feed = require('multilevel-feed');

var http = require('http');
var server = http.createServer(function (req, res) { res.end('beep\n') });
server.listen(5000);

var shoe = require('shoe');
var sock = shoe(function (stream) { stream.pipe(feed(db)).pipe(stream) });
sock.install(server, '/sock');