multilevel-feed

multilevel server and browser client with a level-livefeed manifest

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 (reqres) { 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');