Skip to content

Commit d2b4dcd

Browse files
Docs: Update for Node SDK 0.146.0
1 parent eedebea commit d2b4dcd

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎browsers/pools.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ Idle browsers in a pool aren't billed, but the pool's capacity counts against yo
2828
A few constraints to weigh before moving a workload onto a browser pool:
2929

3030
- **No GPU browsers.** GPU-accelerated browsers are on-demand only. Use `browsers.create()` for WebGL, video, or canvas-heavy work.
31-
- **One fixed configuration per browser pool**, with `start_url` the only setting you can override per acquisition — see [Create a browser pool](#create-a-browser-pool).
31+
- **One fixed base configuration per browser pool.** You can override selected lease settings, including `start_url` and `start_replay`, per acquisition — see [Acquire a browser](#acquire-a-browser).
3232
- **A profile set on the browser pool loads read-only**, and a browser pool holds one at a time — see [Per-user profiles with browser pools](#per-user-profiles-with-browser-pools) for how to persist state per user.
3333
- **Browser pool capacity counts against your [concurrency limit](/browsers/concurrency-and-limits#concurrency)** whether or not its browsers are acquired, though idle pooled browsers aren't billed.
3434
- **Plan-gated.** Browser pools are available on the Start-Up and Enterprise plans.
3535

3636
## Create a browser pool
3737

38-
Create a browser pool with a size and the configuration every browser in it should use.
38+
Create a browser pool with a size and the configuration every browser in it should use. Set `start_replay: true` to start a [replay recording](/browsers/replays) automatically whenever a browser is acquired.
3939

4040
<CodeGroup>
4141
```typescript Typescript/Javascript
@@ -121,7 +121,7 @@ func main() {
121121

122122
## Acquire a browser
123123

124-
Acquire a browser from the browser pool. The request returns immediately if a browser is available, or waits until one becomes available. Use `acquire_timeout_seconds` to bound that wait.
124+
Acquire a browser from the browser pool. The request returns immediately if a browser is available, or waits until one becomes available. Use `acquire_timeout_seconds` to bound that wait. Omit `start_replay` to use the pool's replay default, or set it to `true` or `false` for that acquisition.
125125

126126
<CodeGroup>
127127
```typescript Typescript/Javascript

‎browsers/replays.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ Replays capture browser sessions as video recordings that you can view or downlo
77

88
## Starting and stopping recordings
99

10-
To start recording a browser session, use the replays API on an active browser:
10+
To record from the beginning of a session, set `start_replay: true` when you create the browser. For a browser pool, set `start_replay` when you create or update the pool to control the default for future acquisitions, or pass it to `acquire()` to override the pool default for one acquisition. Browser and pool creation default to `false`; an acquisition that omits the setting uses the pool default.
11+
12+
To start recording after a browser is active, use the replays API:
1113

1214
<CodeGroup>
1315
```typescript Typescript/Javascript

0 commit comments

Comments
 (0)