Open
Description
Currently, there is no available method to explicitly kill or close a session after a desired operation has been completed using the Browserbase SDK or API that is designed for Playwright.
While it is possible to set an timeout as a workaround, it is not an optimal solution. This approach lacks precision and does not offer the control that a direct method (e.g., session.close()
or session.terminate()
) would provide.
Why this is important:
- Allows developers to gracefully end sessions immediately after their task is done.
- Helps manage session usage and API costs more effectively.
- Reduces unnecessary wait times or reliance on time-based workarounds.
Request: Please consider adding a dedicated method to manually close or kill sessions programmatically.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels