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

Change websockets imports to make it compatible with older versions #1120

Merged
merged 1 commit into from Sep 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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