Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling/grammar #127

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/mattermostdriver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/mattermostdriver/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")