Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Connection

Headless Chrome Deno API
Latest
class Connection
extends EventEmitter
Re-export
import { Connection } from "https://deno.land/x/pptr@1.2.0/mod.ts";

Constructors

new
Connection(
url: string,
delay?,
)

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