Tethering

class Tethering(cdp: CDP) : Domain

The Tethering domain defines methods and events for browser port binding.

Constructors

Link copied to clipboard
constructor(cdp: CDP)

Types

Link copied to clipboard
@Serializable
data class AcceptedParameter(val port: Int, val connectionId: String)

Informs that port was successfully bound and got a specified connection id.

Link copied to clipboard
@Serializable
data class BindParameter(val port: Int)
Link copied to clipboard
@Serializable
data class UnbindParameter(val port: Int)

Properties

Link copied to clipboard

Informs that port was successfully bound and got a specified connection id.

Functions

Link copied to clipboard
suspend fun bind(port: Int)
suspend fun bind(args: Tethering.BindParameter, mode: CommandMode = CommandMode.DEFAULT)

Request browser port binding.

Link copied to clipboard
suspend fun unbind(port: Int)
suspend fun unbind(args: Tethering.UnbindParameter, mode: CommandMode = CommandMode.DEFAULT)

Request browser port unbinding.