Last active
December 18, 2015 08:39
-
-
Save No9/5756282 to your computer and use it in GitHub Desktop.
Current levelweb connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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