aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-07-10 13:35:42 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-07-10 13:35:42 -1000
commit1a33bad6b4f7fda5a5567e2c9b9d1fb20658cfc9 (patch)
tree56240a4d193aedf1be484f29a6e2f14ea55f7e3b
parent99751530687fd14483071de4ae97c2caac667c92 (diff)
downloadpatchfoo-1a33bad6b4f7fda5a5567e2c9b9d1fb20658cfc9.tar.gz
patchfoo-1a33bad6b4f7fda5a5567e2c9b9d1fb20658cfc9.zip
Add ssb client keep-alive
-rw-r--r--lib/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index 13d947e..d2a029b 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -61,9 +61,12 @@ App.prototype.go = function () {
pull.drain(function (link) {
self.aboutCache.remove(link.dest)
}, function (err) {
- if (err) self.error('about:', err)
+ if (err) throw err
})
)
+
+ // keep alive ssb client connection
+ setInterval(self.sbot.whoami, 10e3)
}
var logPrefix = '[' + pkg.name + ']'