Skip to content

Commit 8a237fe

Browse files
authored
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
1 parent 3408547 commit 8a237fe

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

mmpy_bot/bot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def __init__(
4949
"token": self.settings.BOT_TOKEN,
5050
"scheme": self.settings.SCHEME,
5151
"verify": self.settings.SSL_VERIFY,
52+
"keepalive": True,
53+
"connect_kw_args": {"ping_interval": None},
5254
}
5355
)
5456
self.driver.login()

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aiohttp>=3.7.4.post0
22
click>=7.0
3-
mattermostdriver>=7.2.0
3+
mattermostdriver>=7.3.0
44
schedule>=0.6.0
5-
Sphinx>=1.3.3
5+
Sphinx>=1.3.3

0 commit comments

Comments
 (0)