git ssb

2+

dust / spaceship



Commit 7414b29f8a3e4648ce4478ba087fde7c1682e233

added local ssb client app manifest reading

dust committed on 8/28/2016, 7:01:50 PM
Parent: 0c639d17444e451b8730cf559708fdfa1cee24a6

Files changed

engines/secure-scuttlebutt/engine.jschanged
engines/secure-scuttlebutt/engine.jsView
@@ -23,9 +23,10 @@
2323 var appName = process.env.ssb_appname || 'spaceship_test'
2424 var appKeys = ssbkeys.loadOrCreateSync(path.join(process.env.HOME, `.${appName}/secret`))
2525 var appHost = process.env.ssb_host || 'localhost'
2626 var appPort = process.env[`${appName}_port`] || 8009
27-var ssbOpts = { host: appHost, port: appPort, key: appKeys.id }
27+var appManifest = JSON.parse(fs.readFileSync(path.join(process.env.HOME, `.${appName}/manifest.json`)))
28+var ssbOpts = { host: appHost, port: appPort, key: appKeys.id, manifest: appManifest }
2829
2930 /**
3031 * @namespace engine
3132 * @prop {function} clientCall - internal access to sbot

Built with git-ssb-web