From 0f50e01e50a3a23fc8258f9ea894ed60669f40bb Mon Sep 17 00:00:00 2001 From: Roy-Orbison Date: Fri, 17 Feb 2023 13:11:27 +1030 Subject: [PATCH 1/2] Typo --- src/mattermostdriver/websocket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mattermostdriver/websocket.py b/src/mattermostdriver/websocket.py index 4576835..b4e6c9a 100644 --- a/src/mattermostdriver/websocket.py +++ b/src/mattermostdriver/websocket.py @@ -129,6 +129,6 @@ async def _authenticate_websocket(self, websocket, event_handler): # because the hello event could arrive before the authentication ok response await event_handler(message) if ("event" in status and status["event"] == "hello") and ("seq" in status and status["seq"] == 0): - log.info("Websocket authentification OK") + log.info("Websocket authentication OK") return True - log.error("Websocket authentification failed") + log.error("Websocket authentication failed") From 1c056521a67c8291aa9bbdf7486ced6e76a40fc3 Mon Sep 17 00:00:00 2001 From: Roy-Orbison Date: Fri, 17 Feb 2023 13:17:56 +1030 Subject: [PATCH 2/2] Spelling/grammar --- src/mattermostdriver/driver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mattermostdriver/driver.py b/src/mattermostdriver/driver.py index f45244c..e3d8675 100644 --- a/src/mattermostdriver/driver.py +++ b/src/mattermostdriver/driver.py @@ -337,8 +337,8 @@ def init_websocket(self, event_handler, websocket_cls=Websocket): """ Will initialize the websocket connection to the mattermost server. - This should be run after login(), because the websocket needs to make - an authentification. + This should be run after login(), because the websocket needs to + authenticate. See https://api.mattermost.com/v4/#tag/WebSocket for which websocket events mattermost sends. @@ -432,8 +432,8 @@ def init_websocket(self, event_handler, websocket_cls=Websocket): and returns a coroutine that can be awaited. It will not return until shutdown() is called. - This should be run after login(), because the websocket needs to make - an authentification. + This should be run after login(), because the websocket needs to + authenticate. See https://api.mattermost.com/v4/#tag/WebSocket for which websocket events mattermost sends.