34ff00e2fe
* fix: added parts of website * fix: removed unnecessary lines * fix: updated contributing.md * fix: added parts of sidebar * fix: added all APIs * fix: added version 10.0.0 Co-authored-by: Jack Franklin <jacktfranklin@chromium.org>
2.0 KiB
2.0 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, paramArgs) | ||
session(sessionId) | ||
url() |