Skip to content

Commit

Permalink
Change websockets imports to make it compatible with older versions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Sep 21, 2021
1 parent 70144f5 commit c1c8a3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slack_sdk/socket_mode/websockets/__init__.py
Expand Up @@ -14,7 +14,9 @@

import websockets
from websockets.exceptions import WebSocketException
from websockets.legacy.client import WebSocketClientProtocol

# To keep compatibility with websockets 8.x, we use this import over .legacy.client
from websockets import WebSocketClientProtocol

from slack_sdk.socket_mode.async_client import AsyncBaseSocketModeClient
from slack_sdk.socket_mode.async_listeners import (
Expand Down

0 comments on commit c1c8a3b

Please sign in to comment.