puppeteer/new-docs/puppeteer.connection.md
Jack Franklin 086c08998b
chore: commit base new-docs (#5973)
This adds the new docs that are generated by API Extractor via TSDoc.
They are sparse because we do not yet use TSDoc in the codebase. This is
the starting point and from here we can work through all the different
classes and improve the documentation.
2020-06-04 15:56:45 +01:00

45 lines
1.9 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Connection](./puppeteer.connection.md)
## Connection class
<b>Signature:</b>
```typescript
export declare class Connection extends EventEmitter
```
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(url, transport, delay)](./puppeteer.connection._constructor_.md) | | Constructs a new instance of the <code>Connection</code> class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [\_callbacks](./puppeteer.connection._callbacks.md) | | Map&lt;number, ConnectionCallback&gt; | |
| [\_closed](./puppeteer.connection._closed.md) | | boolean | |
| [\_delay](./puppeteer.connection._delay.md) | | number | |
| [\_lastId](./puppeteer.connection._lastid.md) | | number | |
| [\_sessions](./puppeteer.connection._sessions.md) | | Map&lt;string, [CDPSession](./puppeteer.cdpsession.md)<!-- -->&gt; | |
| [\_transport](./puppeteer.connection._transport.md) | | ConnectionTransport | |
| [\_url](./puppeteer.connection._url.md) | | string | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [\_onClose()](./puppeteer.connection._onclose.md) | | |
| [\_onMessage(message)](./puppeteer.connection._onmessage.md) | | |
| [\_rawSend(message)](./puppeteer.connection._rawsend.md) | | |
| [createSession(targetInfo)](./puppeteer.connection.createsession.md) | | |
| [dispose()](./puppeteer.connection.dispose.md) | | |
| [fromSession(session)](./puppeteer.connection.fromsession.md) | <code>static</code> | |
| [send(method, params)](./puppeteer.connection.send.md) | | |
| [session(sessionId)](./puppeteer.connection.session.md) | | |
| [url()](./puppeteer.connection.url.md) | | |