From 1a33bad6b4f7fda5a5567e2c9b9d1fb20658cfc9 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 10 Jul 2017 13:35:42 -1000 Subject: Add ssb client keep-alive --- lib/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/app.js') 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 + ']' -- cgit v1.2.3