Commit 7414b29f8a3e4648ce4478ba087fde7c1682e233
added local ssb client app manifest reading
dust committed on 8/28/2016, 7:01:50 PMParent: 0c639d17444e451b8730cf559708fdfa1cee24a6
Files changed
engines/secure-scuttlebutt/engine.js | changed |
engines/secure-scuttlebutt/engine.js | ||
---|---|---|
@@ -23,9 +23,10 @@ | ||
23 | 23 | var appName = process.env.ssb_appname || 'spaceship_test' |
24 | 24 | var appKeys = ssbkeys.loadOrCreateSync(path.join(process.env.HOME, `.${appName}/secret`)) |
25 | 25 | var appHost = process.env.ssb_host || 'localhost' |
26 | 26 | 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 } | |
28 | 29 | |
29 | 30 | /** |
30 | 31 | * @namespace engine |
31 | 32 | * @prop {function} clientCall - internal access to sbot |
Built with git-ssb-web