Purpose
Ends a Browserbase session and cleans up resources. Called when the user leaves the page or the session is no longer needed.Architecture
Cleanup Steps
- Cancel Navigation Task - Stop any in-progress Playwright navigation
- Release Session - Tell Browserbase to release the session
- Clear Cache - Remove from
_ACTIVE_SESSION_BY_CLIENT
Browserbase Release
Code Location
Rate Limiting
- 10 requests per minute per IP address