JsonRpcTransport

Playwright\Transport\JsonRpc\JsonRpcTransport

JSON-RPC transport implementation that bridges JsonRpcClient with the current transport interface.

implements TransportInterface

Methods

__construct()

function __construct( private readonly ProcessLauncherInterface $processLauncher, private readonly array $config = [], ?LoggerInterface $logger = null, )

addEventDispatcher()

void
function addEventDispatcher(string $id, EventDispatcherInterface $dispatcher): void

connect()

void
function connect(): void

disconnect()

void
function disconnect(): void

send()

array
function send(array $message): array

sendAsync()

void
function sendAsync(array $message): void

isConnected()

bool
function isConnected(): bool

processEvents()

void
function processEvents(): void

storePendingCallback()

void

Store a callback for later execution during coordination.

function storePendingCallback(string $requestId, callable $callback): void

__destruct()

function __destruct()