DefaultConnection
open class DefaultConnection(websocketUrl: String, messageListeningScope: CoroutineScope, var targetInfo: <Error class: unknown class>? = null, var owner: Browser? = null) : OwnedConnection
Default implementation of the Connection interface.
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val generatedDomains: MutableMap<KClass<out <Error class: unknown class>>, <Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
inline fun <T> Connection.addHandler(coroutineScope: CoroutineScope, crossinline event: <Error class: unknown class>.() -> Flow<T>, crossinline handler: suspend (T) -> Unit): Job
Adds a handler for a specific CDP event.
Link copied to clipboard
open suspend override fun callCommand(method: String, parameter: JsonElement?, mode: <Error class: unknown class>): JsonElement?
Internal method to call a CDP command.
Link copied to clipboard
Updates the target information by fetching it from the CDP.