Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Merge branch 'main' into feat/sdk-without-ws

Thomas Kosmasa9d31c8e4287
diff --cc apps/js-sdk/firecrawl/src/index.ts
index 9e3a849fa,2772466c7..62d0398b3
--- a/apps/js-sdk/firecrawl/src/index.ts
+++ b/apps/js-sdk/firecrawl/src/index.ts
@@@ -954,8 -939,7 +955,9 @@@ export class CrawlWatcher extends Typed
constructor(id: string, app: FirecrawlApp) {
super();
+ if(!WebSocket)
+ throw new FirecrawlError("WebSocket module failed to load. Your system might not support WebSocket.", 500);
+ this.id = id;
this.ws = new WebSocket(`${app.apiUrl}/v1/crawl/${id}`, app.apiKey);
this.status = "scraping";
this.data = [];