From 8a237fe0c11460697353b08bdeb4300973fb6865 Mon Sep 17 00:00:00 2001 From: Alex Tzonkov <4975715+attzonko@users.noreply.github.com> Date: Fri, 9 Apr 2021 13:37:44 -0700 Subject: [PATCH] Add driver options to deal with websocket fixes (#181) * Add driver options to deal with websocket fixes * Upping the driver version to the one which supports keepalive functionality --- mmpy_bot/bot.py | 2 ++ requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mmpy_bot/bot.py b/mmpy_bot/bot.py index b78e3a62..fcba7001 100644 --- a/mmpy_bot/bot.py +++ b/mmpy_bot/bot.py @@ -49,6 +49,8 @@ def __init__( "token": self.settings.BOT_TOKEN, "scheme": self.settings.SCHEME, "verify": self.settings.SSL_VERIFY, + "keepalive": True, + "connect_kw_args": {"ping_interval": None}, } ) self.driver.login() diff --git a/requirements.txt b/requirements.txt index 6eb97fd6..4665969f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ aiohttp>=3.7.4.post0 click>=7.0 -mattermostdriver>=7.2.0 +mattermostdriver>=7.3.0 schedule>=0.6.0 -Sphinx>=1.3.3 +Sphinx>=1.3.3 \ No newline at end of file