Skip to main content
Go to Latest
class Connection
extends EventEmitter
Re-export
import { Connection } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";

Constructors

new
Connection(
url: string,
delay?: number,
)

Properties

_callbacks: Map<number, ConnectionCallback>
_closed: boolean
_delay: number
_lastId: number
_sessions: Map<string, CDPSession>
_url: string

Methods

_onClose(): void
_onMessage(message: string): Promise<void>
_rawSend(message: Record<string, unknown>): number
dispose(): void
send<T extends keyof ProtocolMapping.Commands>(method: T, ...paramArgs: ProtocolMapping.Commands[T]["paramsType"]): Promise<ProtocolMapping.Commands[T]["returnType"]>
session(sessionId: string): CDPSession | null
url(): string