Skip to content
multilevel server and browser client with a level-livefeed manifest
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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');
Something went wrong with that request. Please try again.