Skip to content

Commit 95f082c

Browse files
update the experimental_maybeStartOrUpdateRemoteProxySession parameters (#24060)
* fix formatting of `experimental_maybeStartOrUpdateRemoteProxySession` example * update the `experimental_maybeStartOrUpdateRemoteProxySession` parameters --------- Co-authored-by: Jun Lee <[email protected]>
1 parent 907cec3 commit 95f082c

File tree

1 file changed

+9
-7
lines changed
  • src/content/docs/workers/development-testing

1 file changed

+9
-7
lines changed

src/content/docs/workers/development-testing/index.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ This type conversion is temporary. In the future, the types will be unified so y
364364

365365
This wrapper simplifies proxy session management. It takes:
366366

367-
- The path to your Wrangler config, or an object with remote bindings.
367+
- An object that contains either:
368+
- the path to a Wrangler configuration and a potential target environment
369+
- the name of the Worker and the bindings it is using
368370
- The current proxy session details (this parameter can be set to `null` or not being provided if none).
369371
- Potentially the auth data to use for the remote proxy session.
370372

@@ -393,12 +395,12 @@ let remoteProxySessionDetails: Awaited<ReturnType<typeof experimental_maybeStart
393395

394396
async function startOrUpdateDevSession() {
395397
remoteProxySessionDetails = await experimental_maybeStartOrUpdateRemoteProxySession({
396-
bindings: {
397-
MY_KV: {
398-
type: 'kv_namespace',
399-
id: 'kv-id',
400-
experimental_remote: true,
401-
}
398+
bindings: {
399+
MY_KV: {
400+
type: 'kv_namespace',
401+
id: 'kv-id',
402+
experimental_remote: true,
403+
}
402404
}
403405
},
404406
remoteProxySessionDetails

0 commit comments

Comments
 (0)