diff --git a/clients.py b/clients.py index ee0ba2d..0f0387d 100644 --- a/clients.py +++ b/clients.py @@ -189,7 +189,7 @@ async def connect(self): """Establishes a WebSocket connection using authentication.""" host = self.WS_BASE_URL + self.url_suffix auth_headers = self.request_headers("GET", self.url_suffix) - async with websockets.connect(host, additional_headers=auth_headers) as websocket: + async with websockets.connect(host, extra_headers=auth_headers) as websocket: self.ws = websocket await self.on_open() await self.handler()