lino-levan / astral

A high-level puppeteer/playwright-like library for Deno
https://jsr.io/@astral/astral
MIT License
253 stars 17 forks source link

Add disconnect handling for use with manually set WebSocket endpoints #87

Closed chaosharmonic closed 1 month ago

chaosharmonic commented 2 months ago

When connecting to an existing browser session using launch, calling browser.close() kills the entire process. Calling launch with using also kills the whole process at the end.

Manually set WebSocket endpoints could maybe benefit from an explicit disconnect handler to close the connection and not the entire browser.