class Connection
extends EventEmitter
Re-export
import { Connection } from "https://deno.land/x/pptr@1.2.0/mod.ts";
Constructors
Properties
_sessions: Map<string, CDPSession>
_transport: ConnectionTransport
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
Static Methods
fromSession(session: CDPSession): Connection