Connection
Interface representing a connection to a browser target using the Chrome DevTools Protocol (CDP).
Inheritors
Properties
Functions
Link copied to clipboard
inline fun <T> Connection.addHandler(coroutineScope: CoroutineScope, crossinline event: CDP.() -> Flow<T>, crossinline handler: suspend (T) -> Unit): Job
Adds a handler for a specific CDP event.
Link copied to clipboard
abstract suspend override fun callCommand(method: String, parameter: JsonElement?, mode: CommandMode): JsonElement?
Internal method to call a CDP command.
Link copied to clipboard
Updates the target information by fetching it from the CDP.