Open juliangruber opened 11 years ago
What about currying the recon object and adding whenConntected.stream instead of an options object:
recon
whenConntected.stream
var whenConnected = require('when-connected')(recon); var get = whenConnected(function () { /* ... */ }); var dumpDB = whenConnected.stream(function () { /* ... */ });
that makes the default use case much easier. thanks for the idea! ill try it out now,
What about currying the
recon
object and addingwhenConntected.stream
instead of an options object: