aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_workspace.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-15 01:43:25 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit02cf9e43839ee1747c07e1f2c8c7b6ecc24518cc (patch)
tree8ea7d4d8d1d0c7e7826a7d06bb18fb8afd44d484 /slack/slack_workspace.py
parent6598b7a77c0b590fcece218b9bf065301c3ee82d (diff)
downloadwee-slack-02cf9e43839ee1747c07e1f2c8c7b6ecc24518cc.tar.gz
Ping websocket every 5 seconds
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r--slack/slack_workspace.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index fe1d5a6..87861c8 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -122,6 +122,7 @@ class SlackWorkspace:
return weechat.WEECHAT_RC_OK
if opcode == ABNF.OPCODE_PONG:
+ # TODO: Maybe record last time anything was received instead
self.last_pong_time = time.time()
return weechat.WEECHAT_RC_OK
elif opcode != ABNF.OPCODE_TEXT: