ExposeDevToolsProtocolRequest

data class ExposeDevToolsProtocolRequest(targetId: TargetID, bindingName: String?)

Represents request frame that can be used with Target#exposeDevToolsProtocol operation call.

Inject object to the target's main frame that provides a communication channel with browser target.

Injected object will be available as window[bindingName].

The object has the follwing API:

  • binding.send(json) - a method to send messages over the remote debugging protocol

  • binding.onmessage = json => handleMessage(json) - a callback that will be called for the protocol notifications and command responses.

See also

Constructors

ExposeDevToolsProtocolRequest
Link copied to clipboard
fun ExposeDevToolsProtocolRequest(targetId: TargetID, bindingName: String? = null)

Properties

bindingName
Link copied to clipboard
val bindingName: String? = null
Binding name, 'cdp' if not specified.
targetId
Link copied to clipboard
val targetId: TargetID

Sources

jvm source
Link copied to clipboard