Keep sessions alive
You can opt to keep sessions alive on disconnect.
Normally sessions being the shut down process on disconnect. But you can change this behavior so that sessions stay alive till they either timeout or you stop them manually.
If you don’t stop sessions manually and just wait for them to timeout, you’ll be charged all the browser minutes used. Be efficient by stopping sessions when you’re done with them.
To keep sessions alive on disconnect, during session creation, specify the keepAlive
option as true
.
Here’s an example using our Node.js SDK:
Now connect to the session and perform work as usual. When you disconnect, the session will stay alive. You can reconnect before the session times out and perform more work. When you’re done, make sure to stop the session:
Was this page helpful?