From 88d67026ae788283d2a54d22e26e7bfa397ccad2 Mon Sep 17 00:00:00 2001 From: Adir111 Date: Wed, 4 Sep 2024 14:50:02 +0300 Subject: [PATCH] Now sending is alive message every 1 minute. --- hkube_python_wrapper/wrapper/wc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hkube_python_wrapper/wrapper/wc.py b/hkube_python_wrapper/wrapper/wc.py index 1ab5946d..ddd11ac8 100644 --- a/hkube_python_wrapper/wrapper/wc.py +++ b/hkube_python_wrapper/wrapper/wc.py @@ -21,7 +21,8 @@ def __init__(self, msg_queue, encoding, url): self._active = True self._firstConnect = False self._printThrottleMessages = { - messages.outgoing.streamingStatistics: {"delay": 240, "lastPrint": None} + messages.outgoing.streamingStatistics: {"delay": 240, "lastPrint": None}, + messages.outgoing.alive: {"delay": 60, "lastPrint": None} } self._encoding = Encoding(encoding) self._ws_opcode = ABNF.OPCODE_BINARY if self._encoding.isBinary else ABNF.OPCODE_TEXT