From a256ff199cf673afd1b7c38cdd29ef38e87995bf Mon Sep 17 00:00:00 2001 From: harrodyuan Date: Fri, 18 Jul 2025 12:51:23 -0400 Subject: [PATCH] Fix WebSocket connection header parameter in KalshiWebSocketClient --- clients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()