mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
ace31d6f58
Without the API-* dependencies pinned different versions may be installed on local machines vs CI. One of the checks we do is to check that the checked in docs matches what is generated on CI. Therefore we need to ensure devs locally run the exact version that CI runs such that they generate the same output. So in this case we pin to a particular version of the dependencies.
1.9 KiB
1.9 KiB
Home > puppeteer > Connection
Connection class
Signature:
export declare class Connection extends EventEmitter
Extends: EventEmitter
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(url, transport, delay) | Constructs a new instance of the Connection class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
_callbacks | Map<number, ConnectionCallback> | ||
_closed | boolean | ||
_delay | number | ||
_lastId | number | ||
_sessions | Map<string, CDPSession> | ||
_transport | ConnectionTransport | ||
_url | string |
Methods
Method | Modifiers | Description |
---|---|---|
_onClose() | ||
_onMessage(message) | ||
_rawSend(message) | ||
createSession(targetInfo) | ||
dispose() | ||
fromSession(session) | static |
|
send(method, params) | ||
session(sessionId) | ||
url() |