git ssb

1+

cheerbitch / dexbot



Commit cea37bb07519a0522556a3f190e854b8943fb367

latest

Tree committed on 12/14/2016, 5:30:47 AM
Parent: d2d879c5cd926401369c0bdc4b092d54f390d23e

Files changed

index.jschanged
index.jsView
@@ -1,19 +1,16 @@
11 var secretStack = require('secret-stack')
22 var keys = require('./keys.json')
3-var appkey = require('./appkeys.json')
43 var muxrpc = require('muxrpc')
54 var ms = require('multiserver')
65 var mdns = require('bonjour')()
76
87 var createApp = secretStack({
9- appKey: appkey.private
8 + appKey: new Buffer('00000000000000000000000000000000')
109 }).use({
1110 name: 'spot',
1211 manifest: {
13- public: {
14- greet: 'async'
15- }
12 + greet: 'async'
1613 },
1714 permissions: {
1815 anonymous: ['public.greet']
1916 },
@@ -44,9 +41,9 @@
4441 if(service.host === node.getAddress()) return
4542 else{
4643 node.connect(service.host, function(err, rpc){
4744 console.log(err, rpc)
48- rpc.public.greet(function(err, greets){
45 + rpc.spot.greet(function(greets){
4946 console.log(greets)
5047 })
5148 })
5249 }

Built with git-ssb-web