-
Notifications
You must be signed in to change notification settings - Fork 78
Description
Hi all. When I connect to the server and receive a message from it. The console log shows an error.
Received message from remote server:
{'event': 'hello', 'data': {'connection_id': 'ug5y64sdtkka', 'server_version': '6.7.0.commit-e341**d104855.true'}, 'broadcast': {'omit_users': None, 'user_id': 'teierjw*******dzyc', 'channel_id': '', 'team_id': '', 'contains_sanitized_data': False, 'contains_sensitive_data': False}, 'seq': 0}
Trased
Failed to establish websocket connection: <class 'TypeError'> thrown
Traceback (most recent call last):
File "C:\Users*****\PycharmProjects\python-mattermost-driver\src\mattermostdriver\websocket.py", line 60, in connect
await self._start_loop(websocket, event_handler)
File "C:\Users***\PycharmProjects\python-mattermost-driver\src\mattermostdriver\websocket.py", line 82, in _start_loop
await event_handler(message)
TypeError: 'str' object is not callable