This is called on workers that already satisfy certain constraints:
Deserialize data received from the worker.
Remove an event listener.
Register an event listener.
Send a message to the worker in the CDP context. This is called by Vitest with WorkerRequest messages or birpc RPC messages. We intercept these and handle them with our hybrid approach.
Start the worker by establishing the CDP connection and injecting the runtime.
Stop the worker by closing the CDP connection.
Custom Vitest pool worker that communicates over CDP using birpc. Uses @vitest/runner in the CDP context for full Vitest compatibility.