From c5c46dd6ee7f54a25c08216d957af45e68a20131 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 2 May 2021 14:30:26 +0200 Subject: [PATCH] Fix "cb is not a function" error in streaming API server (#16134) Third argument of `ping` is the callback Regression from #15932 --- streaming/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streaming/index.js b/streaming/index.js index 0af80daadd2..7bb645a1357 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);