From: Eugen Rochko Date: Sun, 2 May 2021 12:30:26 +0000 (+0200) Subject: Fix "cb is not a function" error in streaming API server (#16134) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c5c46dd6ee7f54a25c08216d957af45e68a20131;p=mastodon.git Fix "cb is not a function" error in streaming API server (#16134) Third argument of `ping` is the callback Regression from #15932 --- diff --git a/streaming/index.js b/streaming/index.js index 0af80daad..7bb645a13 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -1062,7 +1062,7 @@ const startWorker = (workerId) => { } ws.isAlive = false; - ws.ping('', false, true); + ws.ping('', false); }); }, 30000);