git ssb

30+

cel / git-ssb-web



Commit 8599df15928f4db206734f0d4ed00429e6b36a86

Keepalive

cel committed on 7/26/2017, 6:25:34 PM
Parent: 55018e457a311cc1c0ebcb5e9c4285a582bee8ba

Files changed

index.jschanged
index.jsView
@@ -929,9 +929,11 @@
929929 G.monitorSsbClient = function () {
930930 pull(
931931 function (abort, cb) {
932932 if (abort) throw abort
933- // leave the stream open
933 + setTimeout(function () {
934 + cb(null, 'keepalive')
935 + }, 15e3)
934936 },
935937 this.ssb.gossip.ping(),
936938 pull.drain(null, function (err) {
937939 // exit when the rpc connection ends

Built with git-ssb-web