diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-07-10 13:35:42 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-07-10 13:35:42 -1000 |
commit | 1a33bad6b4f7fda5a5567e2c9b9d1fb20658cfc9 (patch) | |
tree | 56240a4d193aedf1be484f29a6e2f14ea55f7e3b | |
parent | 99751530687fd14483071de4ae97c2caac667c92 (diff) | |
download | patchfoo-1a33bad6b4f7fda5a5567e2c9b9d1fb20658cfc9.tar.gz patchfoo-1a33bad6b4f7fda5a5567e2c9b9d1fb20658cfc9.zip |
Add ssb client keep-alive
-rw-r--r-- | lib/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 + ']' |