Skip to main content
Go to Latest
class Connection
extends EventEmitter
import { Connection } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/Connection.d.ts";

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
createSession(targetInfo: Protocol.Target.TargetInfo): Promise<CDPSession>
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