Settings

Theme

Dnode - language agnostic asynchronous RPC built on socket.io

thechangelog.com

20 points by reddittor 15 years ago · 2 comments

Reader

thirty-thirty 15 years ago

  var dnode = require('dnode')
  dnode(function(client){
    this.is = function(cb){client.what(function(data){cb(data+' is awesome!')})}
  }).listen(3003).on('ready', function(){
    dnode({what:function(cb){cb('dnode')}}).connect(3003,function(server){
      server.is(function(data){console.log(data)})
    })
  })
Maximosis 15 years ago

Brilliant!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection