Property | Description |
---|---|
Keep Alive | Allowing you to reconnect to the same session after a disconnect |
Custom Timeout | Extending the lifetime of a session beyond its default timeout period |
keepAlive
feature allows you to keep sessions alive across disconnects, permitting you to continue using it as long as needed.
keepAlive
to true
will keep the session available for later use. You can reconnect to the keep alive session using the same connection URL as the original session.
Let’s walk through an example of how to keep a session alive:
TimeoutError
: Timeout _____ms exceeded
Browserbase has a project wide settings for session timeout. We can change to session timeout project wide to a different value in the toggle.
createSession
function.
To set a custom timeout for your session, specify the timeout
option in the API request body or
with the SDK.