 Live View lets you observe your browser sessions in real-time as they execute. This is essential for debugging automation scripts, monitoring long-running tasks, demonstrating workflows, or enabling human-in-the-loop interactions.
Live View lets you observe your browser sessions in real-time as they execute. This is essential for debugging automation scripts, monitoring long-running tasks, demonstrating workflows, or enabling human-in-the-loop interactions.
How it Works
Every Hyperbrowser session automatically includes a uniqueliveUrl that streams the browser session in real-time. The URL remains valid as long as the session is active and the embedded authentication token hasn’t expired (tokens expire after 12 hours).
When you create or retrieve a session, you’ll receive a liveUrl that looks like:
Getting the Live URL
Embedding Live View
You can embed Live View directly into your application using an iframe. This is useful for creating custom monitoring dashboards or providing seamless live views to end-users:Securing Live View
Live View URLs are secured with authentication and encryption. Only users with the correct URL can access the Live View.Anyone with the URL can view (and potentially interact with) the session. Be sure to protect Live View URLs as sensitive secrets, especially if you’re embedding them in a public web page.
liveUrl will expire after 12 hours. To get a refreshed token, simply call the GET request for the session which will return a new liveUrl with an updated token.
Disabling Live View Interactions
By default, Live View allows users to interact with the session. To disable this, you can set theviewOnlyLiveView parameter to true when creating the session. This will make the Live View read-only and prevent users from interacting with the session.