multilevel-feed

multilevel server and browser client with a level-livefeed manifest

npm install multilevel-feed
1 downloads in the last day
1 downloads in the last week
4 downloads in the last month

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');
npm loves you