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

1.9 KiB

Home > puppeteer > Connection

Connection class

Signature:

export declare class Connection 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()