feat(python-sdk/CrawlWatcher): remove max payload size from WebSocket (FIR-2038) (#1577)

* feat(python-sdk/CrawlWatcher): remove max payload size from WebSocket

* Update __init__.py

---------

Co-authored-by: Nicolas <nicolascamara29@gmail.com>
This commit is contained in:
Gergő Móricz 2025-05-20 21:59:08 +02:00 committed by GitHub
parent 6d75161302
commit 513f469b0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ import os
from .firecrawl import FirecrawlApp, AsyncFirecrawlApp, JsonConfig, ScrapeOptions, ChangeTrackingOptions # noqa from .firecrawl import FirecrawlApp, AsyncFirecrawlApp, JsonConfig, ScrapeOptions, ChangeTrackingOptions # noqa
__version__ = "2.6.0" __version__ = "2.7.0"
# Define the logger for the Firecrawl project # Define the logger for the Firecrawl project
logger: logging.Logger = logging.getLogger("firecrawl") logger: logging.Logger = logging.getLogger("firecrawl")

View File

@ -2553,6 +2553,7 @@ class CrawlWatcher:
""" """
async with websockets.connect( async with websockets.connect(
self.ws_url, self.ws_url,
max_size=None,
additional_headers=[("Authorization", f"Bearer {self.app.api_key}")] additional_headers=[("Authorization", f"Bearer {self.app.api_key}")]
) as websocket: ) as websocket:
await self._listen(websocket) await self._listen(websocket)