TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dnode - language agnostic asynchronous RPC built on socket.io

20 pointsby reddittorabout 14 years ago

2 comments

thirty-thirtyabout 14 years ago
<p><pre><code> 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)}) }) })</code></pre>
Maximosisabout 14 years ago
Brilliant!