Commit 80d0d4a03e19cdac6bfb67dcdcf5e55970e5a65a
greetings
Tree committed on 12/14/2016, 4:08:17 AMParent: 061e3e72a74371aae02321b09a7ba522a143fa4a
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -40,8 +40,13 @@ | ||
40 | 40 … | |
41 | 41 … | var browser = mdns.createBrowser(mdns.tcp('http'), 11111) |
42 | 42 … | browser.on('serviceUp', function(service){ |
43 | 43 … | console.log(service.txtRecord.address) |
44 … | + node.connect(service.txtRecord.address.split('~')[0], function(rpc){ | |
45 … | + rpc.public.greeting(function(err, greets){ | |
46 … | + console.log(greets) | |
47 … | + }) | |
48 … | + }) | |
44 | 49 … | }) |
45 | 50 … | |
46 | 51 … | |
47 | 52 … | console.log(node.getAddress()) |
Built with git-ssb-web