Skip to content

Commit c1c8a3b

Browse files
authored
Change websockets imports to make it compatible with older versions (#1120)
1 parent 70144f5 commit c1c8a3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

slack_sdk/socket_mode/websockets/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
import websockets
1616
from websockets.exceptions import WebSocketException
17-
from websockets.legacy.client import WebSocketClientProtocol
17+
18+
# To keep compatibility with websockets 8.x, we use this import over .legacy.client
19+
from websockets import WebSocketClientProtocol
1820

1921
from slack_sdk.socket_mode.async_client import AsyncBaseSocketModeClient
2022
from slack_sdk.socket_mode.async_listeners import (

0 commit comments

Comments
 (0)