UNPKG

chromium-bidi

Version:

An implementation of the WebDriver BiDi protocol for Chromium implemented as a JavaScript layer translating between BiDi and CDP, running inside a Chrome tab.

14 lines (13 loc) 519 B
import { EventEmitter } from '../utils/EventEmitter.js'; /** * Implements simple transport that allows sending string messages via * `sendCommand` and receiving them via `on('message')`. */ export declare class SimpleTransport extends EventEmitter<Record<'message', string>> { #private; /** * @param sendCommandDelegate delegate to be called in `sendCommand`. */ constructor(sendCommandDelegate: (plainCommand: string) => Promise<void>); sendCommand(plainCommand: string): Promise<void>; }