Skip to content

Fix bad WebSocket URL in CrawlWatcher#1053

Merged
mogery merged 2 commits intofirecrawl:mainfrom
ProfHercules:patch-1
Jan 28, 2025
Merged

Fix bad WebSocket URL in CrawlWatcher#1053
mogery merged 2 commits intofirecrawl:mainfrom
ProfHercules:patch-1

Conversation

@ProfHercules
Copy link
Contributor

Fixed CrawlWatcher creating WebSocket using standard http url from base app.

Fixed CrawlWatcher creating WebSocket using standard http url from base app.
Copy link
Member

@mogery mogery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@ProfHercules
Copy link
Contributor Author

Could improve this by using a regex to replace either http or https with ws (only at the start of the string).

Copy link
Member

@mogery mogery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@mogery mogery merged commit b8c4e19 into firecrawl:main Jan 28, 2025
timoa pushed a commit to timoa/firecrawl that referenced this pull request Feb 2, 2025
* fix: bad websocket url in crawl watcher

Fixed CrawlWatcher creating WebSocket using standard http url from base app.

* Use regex to improve url replacement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants