daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Oct 21st, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var dnode = require('../../lib/dnode');
  2. var net = require('net');
  3.  
  4. var d = new dnode();
  5. d.on('remote', function (remote) {
  6.     remote.transform('beep', function (s) {
  7.         console.log('beep => ' + s);
  8.         d.end();
  9.     });
  10. });
  11.  
  12. var c = net.connect(5004);
  13. c.pipe(d).pipe(c);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top