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.

Add path to socket connections

Ondra Urban33a8be96aa74
diff --git a/src/live_view/index.html b/src/live_view/index.html
index 9ce08e222..7e8096456 100644
--- a/src/live_view/index.html
+++ b/src/live_view/index.html
@@ -127,7 +127,9 @@
}
function connect() {
- const socket = io();
+ const socket = io(window.location.href, {
+ path: window.location.pathname
+ });
socket.on('snapshot', showSnapshot);
socket.on('connect', () => {
console.log('Client ID: ' + socket.id);