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()
voidfunction addEventDispatcher(string $id, EventDispatcherInterface $dispatcher): void
connect()
voidfunction connect(): void
disconnect()
voidfunction disconnect(): void
send()
arrayfunction send(array $message): array
sendAsync()
voidfunction sendAsync(array $message): void
isConnected()
boolfunction isConnected(): bool
processEvents()
voidfunction processEvents(): void
storePendingCallback()
voidStore a callback for later execution during coordination.
function storePendingCallback(string $requestId, callable $callback): void
__destruct()
function __destruct()