RemoteConnection
Index
Methods
release
Releases the remote session for
token. Idempotent — safe to call from bothclose()andkill().Parameters
token: number
Returns Promise<void>
resolve
Resolves the endpoint for a single browser launch. The
tokenidentifies the session for release.Parameters
optionaloptions: { proxyUrl?: string }
optionalproxyUrl: string
Returns Promise<{ token: number; url: string }>
The bridge a RemoteBrowserPool injects into a BrowserPlugin so the plugin can connect to a remote browser without owning any remote-session policy.
The plugin only knows how to make the library-specific
connect()call; everything else — resolving the endpoint, calling the user'srelease(), and guaranteeing release fires at most once — lives in the pool. The plugin calls resolve before connecting, stores the returnedtokenon its launch context, and the controller later calls release with that token when the browser closes.