pl.wendigo.chrome.protocol

Package pl.wendigo.chrome.protocol

Contains DevTools protocol primitives (DebuggerFramesStream, RequestFrame/ResponseFrame and Event base classes).

Types

ChromeDebuggerConnection

class ChromeDebuggerConnection

ChromeDebuggerConnection represents connection to chrome's debugger via DevTools Protocol.

DebuggerFramesStream

class DebuggerFramesStream : WebSocketListener

DebuggerFramesStream represents connection to remote websocket endpoint of the DevTools Protocol (either inspectable page debugger url http://localhost:9222/json or browser debugger url http://localhost:9222/json/version)

Event

open class Event

Debugger event represents generic protocol event consisting of domain and event names. This class is also supertype of all parameterized events.

EventMapper

class EventMapper

EventMapper is responsible for mapping events carried by ResponseFrame to typed events representations.

FrameMapper

class FrameMapper

FrameMapper is responsible for (de)serializing frames exchanged via Chrome's DevTool Protocol.

RequestError

data class RequestError

Represents protocol error.

RequestFrame

data class RequestFrame

Represents request frame.

ResponseFrame

data class ResponseFrame

Represents generic protocol response.

Annotations

Experimental

annotation class Experimental

This annotation is used on DevTools Protocol APIs and types that are marked as experimental.

Exceptions

DeserializationFailed

class DeserializationFailed : Exception

Frame deserialization failed on object mapper.

InspectorCommandFailed

class InspectorCommandFailed : Exception

Inspector command has failed.

RequestFailed

class RequestFailed : Exception

Protocol request has failed.

SerializationFailed

class SerializationFailed : Exception

Frame serialization failed on object mapper.