Skip to main content
Version: Next

ExtensionTransport class

Experimental ExtensionTransport allows establishing a connection via chrome.debugger API if Puppeteer runs in an extension. Since Chrome DevTools Protocol is restricted for extensions, the transport implements missing commands and events.

Signature

export declare class ExtensionTransport implements ConnectionTransport

Implements: ConnectionTransport

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ExtensionTransport class.

Properties

Property

Modifiers

Type

Description

onclose

optional

() => void

onmessage

optional

(message: string) => void

Methods

Method

Modifiers

Description

close()
connectTab(tabId)

static

send(message)