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.
export declare class ExtensionTransport implements ConnectionTransport
Implements: ConnectionTransport
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.
Property | Modifiers | Type | Description |
---|---|---|---|
onclose | `optional` | () => void | |
onmessage | `optional` | (message: string) => void |
Method | Modifiers | Description |
---|---|---|
[close()](./puppeteer.extensiontransport.close.md) | ||
[connectTab(tabId)](./puppeteer.extensiontransport.connecttab.md) | `static` | |
[send(message)](./puppeteer.extensiontransport.send.md) |