Skip to main content
Module

x/puppeteer_plus/mod.ts>Connection

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
class Connection
extends EventEmitter
Re-export
import { Connection } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";

Constructors

new
Connection(
url: string,
transport: ConnectionTransport,
delay?,
)

Properties

readonly
_closed: boolean
readonly
_sessions: Map<string, CDPSession>

Methods

protected
onMessage(message: string): Promise<void>
_rawSend(message: Record<string, unknown>): number
createSession(targetInfo: Protocol.Target.TargetInfo): Promise<CDPSession>
dispose(): void
isAutoAttached(targetId: string): boolean
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

Static Methods

fromSession(session: CDPSession): Connection | undefined