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. 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")