Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fixed websocket params
rafaelmmillercc255d488eef
diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.pyindex d62312c61..990599cc1 100644--- a/apps/python-sdk/firecrawl/firecrawl.py+++ b/apps/python-sdk/firecrawl/firecrawl.py@@ -1855,7 +1855,10 @@ class CrawlWatcher:"""Establishes WebSocket connection and starts listening for messages."""- async with websockets.connect(self.ws_url, extra_headers={"Authorization": f"Bearer {self.app.api_key}"}) as websocket:+ async with websockets.connect(+ self.ws_url,+ additional_headers=[("Authorization", f"Bearer {self.app.api_key}")]+ ) as websocket:await self._listen(websocket)async def _listen(self, websocket) -> None:@@ -3231,7 +3234,10 @@ class AsyncCrawlWatcher(CrawlWatcher):"""Establishes async WebSocket connection and starts listening for messages."""- async with websockets.connect(self.ws_url, extra_headers={"Authorization": f"Bearer {self.app.api_key}"}) as websocket:+ async with websockets.connect(+ self.ws_url,+ additional_headers=[("Authorization", f"Bearer {self.app.api_key}")]+ ) as websocket:await self._listen(websocket)async def _listen(self, websocket) -> None: