digger-client
Connect to a digger server and run selectors
installation
$ npm install digger-client
usage
// the supplychain is what connects our digger client with the transportvar supplychain = ; // the transport is a function that handles the request and response streams// this can move them over a network or pass them to a local digger serversupplychain
Or make a HTTP connected client:
var supplychain = ;
Now we have a supplychain hooked up to a transport - we can create containers:
// connect to a warehouse on a pathvar warehouse = supplychain;
ship requests can send complicated contracts with multiple inputs but cannot stream
they collect all the results into an array and pass them to your callback:
// run a selector to that warehouse
stream requests can send only one source of input but can stream
licence
MIT