From 270f62f57a99fff2771ded2dd190f1f57f9f7190 Mon Sep 17 00:00:00 2001 From: Christian Bundy Date: Thu, 19 Sep 2019 13:18:12 -0700 Subject: [PATCH] Refactor to remove dependence on ~/.ssb/manifest.json --- src/pages/models/lib/cooler.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/pages/models/lib/cooler.js b/src/pages/models/lib/cooler.js index 8c12515..cb36984 100644 --- a/src/pages/models/lib/cooler.js +++ b/src/pages/models/lib/cooler.js @@ -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 {