puppeteer/website/versioned_docs/version-10.1.0/puppeteer.connection.md
2021-08-10 11:09:48 +01:00

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()