example/demo.js
function demo(dht1, dht2) {
    dht1.set('beep', 'boop', function (err) {
        if (err) throw err;
        dht2.get('beep', function (err, value) {
            if (err) throw err;
            console.log('%s === %s', 'boop', value);
        });
    });
}
function demo(dht1, dht2) {
    dht1.set('beep', 'boop', function (err) {
        if (err) throw err;
        dht2.get('beep', function (err, value) {
            if (err) throw err;
            console.log('%s === %s', 'boop', value);
        });
    });
}
function demo ( dht1 , dht2 ) { dht1 . set ( 'beep' , 'boop' , function ( err ) { if ( err ) throw err ; dht2 . get ( 'beep' , function ( err , value ) { if ( err ) throw err ; console . log ( '%s === %s' , 'boop' , value ) ; } ) ; } ) ; }
Store a value on one side and get it back on the other side.
Store a value on one side and get it back on the other side .