Event

@Serializable
class Event(val method: String, val params: JsonElement? = null) : Message

Represents an event emitted asynchronously by the browser.

Unlike Response, an Event is not tied to a specific request. It is pushed from the browser to notify the client of changes, such as "Network.requestWillBeSent" or "Debugger.paused".

Constructors

Link copied to clipboard
constructor(method: String, params: JsonElement? = null)

Properties

Link copied to clipboard

The event method name.

Link copied to clipboard
val params: JsonElement? = null

The event parameters, if any.