Skip to content

Instantly share code, notes, and snippets.

@No9
Last active December 18, 2015 08:39
Show Gist options
  • Save No9/5756282 to your computer and use it in GitHub Desktop.
Save No9/5756282 to your computer and use it in GitHub Desktop.
Current levelweb connection
///AS IS
db.usrdb = multilevel.client()
db.usrdb.pipe(protocol.connect(opts.client, opts.host, function() {
console.log(location)
})).pipe(db.usrdb)
//TO BE
var r = reconnect(function (stream) {
db.usrdb = multilevel.client(require(opts.clientmanifest))
stream.pipe(db.usrdb).pipe(stream)
// Couldn't get this going
}).connect('ws://localhost:8000/ws/taco-demo')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment