Refactor to remove dependence on ~/.ssb/manifest.json

This commit is contained in:
Christian Bundy
2019-09-19 13:18:12 -07:00
parent f60b2631d1
commit 270f62f57a

View File

@ -8,7 +8,19 @@ const ssbConfig = require('ssb-config')
const server = flotilla()
const rawConnect = () => new Promise((resolve, reject) => {
ssbClient((err, api) => {
ssbClient({
manifest: {
about: { socialValue: 'async' },
backlinks: { read: 'source' },
blobs: { get: 'source' },
createUserStream: 'source',
get: 'sync',
messagesByType: 'source',
publish: 'async',
status: 'async',
whoami: 'sync'
}
}, (err, api) => {
if (err) {
reject(err)
} else {