chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.console / ConsoleDomain

ConsoleDomain

class ConsoleDomain
Deprecated: Deprecated in the Chrome DevTools protocol

This domain is deprecated - use Runtime or Log instead.

Official doc

Functions

clearMessages

Does nothing.

suspend fun clearMessages(): Unit

disable

Disables console domain, prevents further console messages from being reported to the client.

suspend fun disable(): Unit

enable

Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.

suspend fun enable(): Unit

events

Subscribes to all events related to this domain.

fun events(): Flow<ConsoleEvent>

messageAdded

Issued when new console message is added.

fun messageAdded(): Flow<MessageAddedEvent>