Skip to content

Commit

Permalink
fix: revert client to handle bc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Feb 25, 2025
1 parent 07fa65b commit 92ce92d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions realtime/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from urllib.parse import urlencode, urlparse, urlunparse

import websockets
from websockets.asyncio.client import ClientConnection, connect
from websockets import connect
from websockets.client import ClientProtocol

from ..message import Message
from ..transformers import http_endpoint_url
Expand Down Expand Up @@ -73,7 +74,7 @@ def __init__(
self.access_token = token
self.send_buffer: List[Callable] = []
self.hb_interval = hb_interval
self.ws_connection: Optional[ClientConnection] = None
self.ws_connection: Optional[ClientProtocol] = None
self.ref = 0
self.auto_reconnect = auto_reconnect
self.channels: Dict[str, AsyncRealtimeChannel] = {}
Expand Down

0 comments on commit 92ce92d

Please sign in to comment.