Commit 8599df15928f4db206734f0d4ed00429e6b36a86
Keepalive
cel committed on 7/26/2017, 6:25:34 PMParent: 55018e457a311cc1c0ebcb5e9c4285a582bee8ba
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -929,9 +929,11 @@ | ||
929 | 929 … | G.monitorSsbClient = function () { |
930 | 930 … | pull( |
931 | 931 … | function (abort, cb) { |
932 | 932 … | if (abort) throw abort |
933 | - // leave the stream open | |
933 … | + setTimeout(function () { | |
934 … | + cb(null, 'keepalive') | |
935 … | + }, 15e3) | |
934 | 936 … | }, |
935 | 937 … | this.ssb.gossip.ping(), |
936 | 938 … | pull.drain(null, function (err) { |
937 | 939 … | // exit when the rpc connection ends |
Built with git-ssb-web