git ssb

1+

cheerbitch / dexbot



Commit ea25afa4464d1c2785f2e0f8e88045b24021891d

GREETINGS

Tree committed on 12/14/2016, 5:35:23 AM
Parent: cea37bb07519a0522556a3f190e854b8943fb367

Files changed

index.jschanged
index.jsView
@@ -15,9 +15,9 @@
1515 anonymous: ['public.greet']
1616 },
1717 init: function(api, opts){
1818 return {
19- 'public.greet': function(arg, cb){
19 + 'greet': function(cb){
2020 cb(null, 'GREETINGS')
2121 }
2222 }
2323 }
@@ -41,9 +41,9 @@
4141 if(service.host === node.getAddress()) return
4242 else{
4343 node.connect(service.host, function(err, rpc){
4444 console.log(err, rpc)
45- rpc.spot.greet(function(greets){
45 + rpc.spot.greet(function(err, greets){
4646 console.log(greets)
4747 })
4848 })
4949 }

Built with git-ssb-web