Skip to main content
Version: Next

RemoteConnection

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's release(), and guaranteeing release fires at most once — lives in the pool. The plugin calls resolve before connecting, stores the returned token on its launch context, and the controller later calls release with that token when the browser closes.

Index

Methods

release

  • release(token): Promise<void>
  • Releases the remote session for token. Idempotent — safe to call from both close() and kill().


    Parameters

    • token: number

    Returns Promise<void>

resolve

  • resolve(options): Promise<{ token: number; url: string }>
  • Resolves the endpoint for a single browser launch. The token identifies the session for release.


    Parameters

    • optionaloptions: { proxyUrl?: string }
      • optionalproxyUrl: string

    Returns Promise<{ token: number; url: string }>

Page Options