Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Fix socket connection

Ondra Urbanfe87d7d2b3ac
diff --git a/src/live_view/index.html b/src/live_view/index.html
index 5a0a34aa3..0139307df 100644
--- a/src/live_view/index.html
+++ b/src/live_view/index.html
@@ -135,7 +135,7 @@
function connect() {
if (liveViewSocket && liveViewSocket.connected) return;
- liveViewSocket = io(window.location.href, {
+ liveViewSocket = io({
path: getSocketIoPath(),
});
liveViewSocket.on('snapshot', showSnapshot);