puppeteer/new-docs/puppeteer.webworker._constructor_.md

24 lines
765 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [WebWorker](./puppeteer.webworker.md) &gt; [(constructor)](./puppeteer.webworker._constructor_.md)
## WebWorker.(constructor)
Constructs a new instance of the `WebWorker` class
<b>Signature:</b>
```typescript
constructor(client: CDPSession, url: string, consoleAPICalled: ConsoleAPICalledCallback, exceptionThrown: ExceptionThrownCallback);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| client | [CDPSession](./puppeteer.cdpsession.md) | |
| url | string | |
| consoleAPICalled | ConsoleAPICalledCallback | |
| exceptionThrown | ExceptionThrownCallback | |